From f216d82052b8977080dc325d104ee66897b07c56 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 May 2018 08:46:37 +0300 Subject: Fix warnings in new clang5 builds. --- src/localconsts.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/localconsts.h') 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]]; -- cgit v1.2.3-60-g2f50