summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 23:52:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 23:52:17 +0300
commitdebb2376ee4f0876c0e6cb26e2a02d4fec87acdb (patch)
tree10bcfbb9f16433f4069fd8d3ed0ffb9cd9b0a67e /src/localconsts.h
parent8bcada9f15440284b58355c565df1151bd017f21 (diff)
downloadmv-debb2376ee4f0876c0e6cb26e2a02d4fec87acdb.tar.gz
mv-debb2376ee4f0876c0e6cb26e2a02d4fec87acdb.tar.bz2
mv-debb2376ee4f0876c0e6cb26e2a02d4fec87acdb.tar.xz
mv-debb2376ee4f0876c0e6cb26e2a02d4fec87acdb.zip
Hide attribute clang::fallthrough in macros.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 4b1616db1..455a0ba3c 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -183,12 +183,15 @@
#define PRAGMACLANG(str) _Pragma(#str)
#if CLANG_VERSION >= 30800
#define PRAGMACLANG6(str) _Pragma(#str)
+#define CLANG_FALLTHROUGH [[clang::fallthrough]];
#else // __clang_major__ >= 6
#define PRAGMACLANG6(str)
+#define CLANG_FALLTHROUGH
#endif // __clang_major__ >= 6
#else // __clang__
#define PRAGMACLANG(str)
#define PRAGMACLANG6(str)
+#define CLANG_FALLTHROUGH
#endif // __clang__
#ifdef __GNUC__