Cleanup: fix more ATTR_FALLTHROUGH warnings.

Ref D3960.
This commit is contained in:
Brecht Van Lommel 2018-12-21 17:23:49 +01:00
parent 4eeab96f10
commit c93fd8438c

@ -93,10 +93,12 @@
#endif #endif
/* Use to suppress '-Wimplicit-fallthrough' (in place of 'break'). */ /* Use to suppress '-Wimplicit-fallthrough' (in place of 'break'). */
#if defined(__GNUC__) && (__GNUC__ >= 7) /* gcc7.0+ only */ #ifndef ATTR_FALLTHROUGH
# define ATTR_FALLTHROUGH __attribute__((fallthrough)) # if defined(__GNUC__) && (__GNUC__ >= 7) /* gcc7.0+ only */
#else # define ATTR_FALLTHROUGH __attribute__((fallthrough))
# define ATTR_FALLTHROUGH ((void)0) # else
# define ATTR_FALLTHROUGH ((void)0)
# endif
#endif #endif
/* Declare the memory alignment in Bytes. */ /* Declare the memory alignment in Bytes. */