From 10ae831cf555a70c30ca21b3638c09b5ea88e448 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Mon, 25 Jan 2021 17:01:37 +0100 Subject: [PATCH] Fix build failures with clang 12 --- phongo_compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phongo_compat.h b/phongo_compat.h index 4436bd853..3ded7f3be 100644 --- a/phongo_compat.h +++ b/phongo_compat.h @@ -54,6 +54,8 @@ #if PHONGO_GNUC_CHECK_VERSION(7, 0) #define PHONGO_BREAK_INTENTIONALLY_MISSING __attribute__((fallthrough)); +#elif defined(__clang__) && __clang_major__ >= 12 +#define PHONGO_BREAK_INTENTIONALLY_MISSING __attribute__((fallthrough)); #else #define PHONGO_BREAK_INTENTIONALLY_MISSING #endif