diff --git a/src/util/Compiler.h b/src/util/Compiler.h index a97b34529..96f63fae4 100644 --- a/src/util/Compiler.h +++ b/src/util/Compiler.h @@ -143,8 +143,10 @@ #define gcc_flatten #endif -#if CLANG_OR_GCC_VERSION(7,0) +#if GCC_CHECK_VERSION(7,0) #define gcc_fallthrough __attribute__((fallthrough)) +#elif CLANG_CHECK_VERSION(10,0) +#define gcc_fallthrough [[fallthrough]] #else #define gcc_fallthrough #endif