Skip to content

Commit e4b225a

Browse files
authored
fallthrough attribute was introduced only in GCC 7.0 (#258)
1 parent c7be9dc commit e4b225a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spirv_reflect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <stdlib.h>
2929
#endif
3030

31-
#if defined(__clang__) || defined(__GNUC__) || defined(__APPLE_CC__)
31+
#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 7) || defined(__APPLE_CC__)
3232
#define FALLTHROUGH __attribute__((fallthrough))
3333
#else
3434
#define FALLTHROUGH

0 commit comments

Comments
 (0)