From 1de8d511251163ed35e0647c70c3e94e071b2fe0 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 6 Dec 2018 19:12:28 +0900 Subject: Special-case FALLTHROUGH for Clang --- lib/util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/util.h') diff --git a/lib/util.h b/lib/util.h index 3f5bcb5f..6b5c89e6 100644 --- a/lib/util.h +++ b/lib/util.h @@ -31,6 +31,8 @@ #define FALLTHROUGH [[fallthrough]] #elif __has_cpp_attribute(clang::fallthrough) #define FALLTHROUGH [[clang::fallthrough]] +#elif __has_cpp_attribute(gnu::fallthrough) +#define FALLTHROUGH [[gnu::fallthrough]] #else #define FALLTHROUGH // -fallthrough #endif -- cgit v1.2.3