summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-23 08:46:37 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-23 08:46:37 +0300
commitf216d82052b8977080dc325d104ee66897b07c56 (patch)
tree9101516430965f375475977bbf3ec7e0094cf211 /src/localconsts.h
parent8969bd9f2617060740f18b078d909ba746bb45cf (diff)
downloadmv-f216d82052b8977080dc325d104ee66897b07c56.tar.gz
mv-f216d82052b8977080dc325d104ee66897b07c56.tar.bz2
mv-f216d82052b8977080dc325d104ee66897b07c56.tar.xz
mv-f216d82052b8977080dc325d104ee66897b07c56.zip
Fix warnings in new clang5 builds.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 10ec5e110..86df45ee0 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -204,6 +204,11 @@
#ifdef __clang__
#define PRAGMACLANG(str) _Pragma(#str)
+#if CLANG_VERSION >= 50000
+#define PRAGMACLANG5(str) _Pragma(#str)
+#else // CLANG_VERSION >= 50000
+#define PRAGMACLANG5(str)
+#endif // CLANG_VERSION >= 50000
#if CLANG_VERSION >= 30800
#define PRAGMACLANG6(str) _Pragma(#str)
#define CLANG_FALLTHROUGH [[clang::fallthrough]];