Skip to content

Commit 35e5b6c

Browse files
authored
Fix build failures with clang 12 (#1193)
1 parent 24eb9bc commit 35e5b6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

phongo_compat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454

5555
#if PHONGO_GNUC_CHECK_VERSION(7, 0)
5656
#define PHONGO_BREAK_INTENTIONALLY_MISSING __attribute__((fallthrough));
57+
#elif defined(__clang__) && __clang_major__ >= 12
58+
#define PHONGO_BREAK_INTENTIONALLY_MISSING __attribute__((fallthrough));
5759
#else
5860
#define PHONGO_BREAK_INTENTIONALLY_MISSING
5961
#endif

0 commit comments

Comments
 (0)