Skip to content

Commit 995f949

Browse files
authored
Fix FALL_THROUGH macro for older clang versions (#2352)
1 parent cc97c47 commit 995f949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/s2n_safety.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
/**
293293
* Marks a case of a switch statement as able to fall through to the next case
294294
*/
295-
#if (defined(__clang__) && __clang_major__ >= 4) || (defined(__GNUC__) && __GNUC__ >= 7)
295+
#if (defined(__clang__) && __clang_major__ >= 10) || (defined(__GNUC__) && __GNUC__ >= 7)
296296
# define FALL_THROUGH __attribute__((fallthrough))
297297
#else
298298
# define FALL_THROUGH ((void)0)

0 commit comments

Comments
 (0)