about summary refs log tree commit diff homepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/klee/Support/CompilerWarning.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/klee/Support/CompilerWarning.h b/include/klee/Support/CompilerWarning.h
index ce192292..167a775b 100644
--- a/include/klee/Support/CompilerWarning.h
+++ b/include/klee/Support/CompilerWarning.h
@@ -10,6 +10,8 @@
 #ifndef KLEE_INCLUDE_KLEE_SUPPORT_COMPILERWARNING_H
 #define KLEE_INCLUDE_KLEE_SUPPORT_COMPILERWARNING_H
 
+#include "klee/Config/Version.h"
+
 // Disables different warnings
 #if defined(__GNUC__) || defined(__clang__)
 #define ENABLE_PRAGMA(X) _Pragma(#X)
@@ -18,8 +20,12 @@
 #define DISABLE_WARNING(warningName)                                           \
   ENABLE_PRAGMA(GCC diagnostic ignored #warningName)
 
+#if LLVM_VERSION_CODE >= LLVM_VERSION(14, 0)
+#define DISABLE_WARNING_DEPRECATED_DECLARATIONS
+#else
 #define DISABLE_WARNING_DEPRECATED_DECLARATIONS                                \
-  DISABLE_WARNING(-Wdeprecated-declarations)
+  DISABLE_WARNING("-Wdeprecated-declarations")
+#endif
 
 #else