Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a56e7b6

Browse files
committed
Silence LLVM 14 API deprecation warnings.
We are going to need to handle the upcoming opaque pointer API changes[1], possibly in time for LLVM 15, but in the meantime let's silence the warnings produced by LLVM 14. [1] https://llvm.org/docs/OpaquePointers.html Reviewed-by: Andres Freund <[email protected]> Discussion: https://postgr.es/m/CA%2BhUKG%2Bp%3DfaBQR2PSAqWoWa%2B_tJdKPT0wjZPQe7XcDEttUCgdQ%40mail.gmail.com
1 parent 8ef1fa3 commit a56e7b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/backend/jit/llvm/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ endif
2222
PGFILEDESC = "llvmjit - JIT using LLVM"
2323
NAME = llvmjit
2424

25+
# LLVM 14 produces deprecation warnings. We'll need to make some changes
26+
# before the relevant functions are removed, but for now silence the warnings.
27+
ifeq ($(GCC), yes)
28+
LLVM_CFLAGS += -Wno-deprecated-declarations
29+
endif
30+
2531
# All files in this directory use LLVM.
2632
CFLAGS += $(LLVM_CFLAGS)
2733
CXXFLAGS += $(LLVM_CXXFLAGS)

0 commit comments

Comments
 (0)