mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-09-18 18:27:18 +02:00
Supress some fall through warnings in GCC with markers. Later to be updated to attributes and include support for more compilers.
This commit is contained in:
@@ -519,6 +519,15 @@ enum EntityType
|
||||
#define SQMOD_FORCEINLINE inline
|
||||
#endif
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* ATTRIBUTES
|
||||
*/
|
||||
#if defined(__GNUC__) && __GNUC__ >= 7
|
||||
#define SQ_FALL_THROUGH __attribute__ ((fallthrough))
|
||||
#else
|
||||
#define SQ_FALL_THROUGH ((void)0)
|
||||
#endif // __GNUC__ >= 7
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* LOGGING LOCATION
|
||||
*/
|
||||
|
Reference in New Issue
Block a user