diff --git a/src/basic/macro.h b/src/basic/macro.h index 2c6e46b6c83..78679083e85 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -48,7 +48,11 @@ #define _weakref_(x) __attribute__((weakref(#x))) #define _alignas_(x) __attribute__((aligned(__alignof(x)))) #define _cleanup_(x) __attribute__((cleanup(x))) +#if __GNUC__ >= 7 #define _fallthrough_ __attribute__((fallthrough)) +#else +#define _fallthrough_ +#endif /* Temporarily disable some warnings */ #define DISABLE_WARNING_DECLARATION_AFTER_STATEMENT \