From 16010c104775d282525062843e9312b11a13a9aa Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Fri, 31 Mar 2023 07:46:59 +0100 Subject: Disable "disabling of warnings" for LLVM >= 14 --- include/klee/Support/CompilerWarning.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit 1.4.1