diff options
author | Luc Van Oostenryck <lucvoo@kernel.org> | 2024-01-20 01:24:12 +0100 |
---|---|---|
committer | Luc Van Oostenryck <lucvoo@kernel.org> | 2024-01-20 01:25:23 +0100 |
commit | 453d7af76abaef3de7934bf7159443103cc56f6b (patch) | |
tree | 04a8c06dfe47c6280582673de8851f7a8b285fad | |
parent | eac793a4ec5e4647e8301ddeb7c13ac78cb54fe1 (diff) | |
download | sparse-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-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |