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
1 changed files with 6 additions and 4 deletions

View File

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