Cleanup: fix ATTR_FALLTHROUGH warnings.

Ref D3960.
This commit is contained in:
Brecht Van Lommel 2018-12-21 17:02:04 +01:00
parent d6ca47a344
commit 4eeab96f10
1 changed files with 6 additions and 4 deletions

View File

@ -69,10 +69,12 @@
# endif /* _WIN32 && !FREE_WINDOWS */
/* 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
#endif /* __KERNEL_GPU__ */