util/Compiler.h: add gcc_fallthrough
Works around build failures with ccache which may feed processed code to GCC, which doesn't have the "fall through" code comments.
This commit is contained in:
@@ -143,6 +143,12 @@
|
||||
#define gcc_flatten
|
||||
#endif
|
||||
|
||||
#if CLANG_OR_GCC_VERSION(7,0)
|
||||
#define gcc_fallthrough __attribute__((fallthrough))
|
||||
#else
|
||||
#define gcc_fallthrough
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus
|
||||
/* plain C99 has "restrict" */
|
||||
#define gcc_restrict restrict
|
||||
|
Reference in New Issue
Block a user