aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <lucvoo@kernel.org>2024-01-20 01:24:12 +0100
committerLuc Van Oostenryck <lucvoo@kernel.org>2024-01-20 01:25:23 +0100
commit453d7af76abaef3de7934bf7159443103cc56f6b (patch)
tree04a8c06dfe47c6280582673de8851f7a8b285fad
parenteac793a4ec5e4647e8301ddeb7c13ac78cb54fe1 (diff)
downloadsparse-453d7af76abaef3de7934bf7159443103cc56f6b.tar.gz
llvm: suppress warnings about deprecated API
LLVM-14 still support LLVMBuildCall() and friends but deprecated them via the attribute, so warnings are issued when compiling. Suppress these warnings to keep builds clean. Signed-off-by: Luc Van Oostenryck <lucvoo@kernel.org>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 84b4527f..8450d8bc 100644
--- a/Makefile
+++ b/Makefile
@@ -216,6 +216,9 @@ INST_PROGRAMS += sparse-llvm sparsec
sparse-llvm-cflags := $(LLVM_CFLAGS)
sparse-llvm-ldflags := $(LLVM_LDFLAGS)
sparse-llvm-ldlibs := $(LLVM_LIBS)
+ifeq ($(LLVM_VERSION_MAJOR),14)
+sparse-llvm-cflags += -Wno-deprecated-declarations
+endif
else
$(warning LLVM 3.0 or later required. Your system has version $(LLVM_VERSION) installed.)
endif