diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-12-06 19:12:28 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-12-08 16:25:22 +0900 |
commit | 1de8d511251163ed35e0647c70c3e94e071b2fe0 (patch) | |
tree | d43902b2f57c38ffc8d072531f894b23650b958c | |
parent | be4a16cd4188ebeeba60768deadd88de5cc5be7b (diff) | |
download | libquotient-1de8d511251163ed35e0647c70c3e94e071b2fe0.tar.gz libquotient-1de8d511251163ed35e0647c70c3e94e071b2fe0.zip |
Special-case FALLTHROUGH for Clang
-rw-r--r-- | lib/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |