From fe042dbdef8f9056982fb42b6ee516f9fb9d03c0 Mon Sep 17 00:00:00 2001 From: Victor Coda Date: Thu, 4 Apr 2024 14:55:28 +0300 Subject: [PATCH] fallthrough attribute was introduced only in GCC 7.0 --- spirv_reflect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_reflect.c b/spirv_reflect.c index 285a861..92f8b33 100644 --- a/spirv_reflect.c +++ b/spirv_reflect.c @@ -28,7 +28,7 @@ #include #endif -#if defined(__clang__) || defined(__GNUC__) || defined(__APPLE_CC__) +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 7) || defined(__APPLE_CC__) #define FALLTHROUGH __attribute__((fallthrough)) #else #define FALLTHROUGH