forked from bartvdbraak/blender
Cleanup: fix more ATTR_FALLTHROUGH warnings.
Ref D3960.
This commit is contained in:
parent
4eeab96f10
commit
c93fd8438c
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user