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
|
#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
|
||||||
|
# if defined(__GNUC__) && (__GNUC__ >= 7) /* gcc7.0+ only */
|
||||||
# define ATTR_FALLTHROUGH __attribute__((fallthrough))
|
# define ATTR_FALLTHROUGH __attribute__((fallthrough))
|
||||||
#else
|
# else
|
||||||
# define ATTR_FALLTHROUGH ((void)0)
|
# define ATTR_FALLTHROUGH ((void)0)
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Declare the memory alignment in Bytes. */
|
/* Declare the memory alignment in Bytes. */
|
||||||
|
Loading…
Reference in New Issue
Block a user