summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Munro2022-03-15 21:30:55 +0000
committerThomas Munro2022-03-15 21:30:55 +0000
commita56e7b66010f330782243de9e25ac2a6596be0e1 (patch)
tree088576c966aca49e3d2915c2bb205d7dda8d43c8
parent8ef1fa3ee05d7acfe3f69d28daabec33db84d870 (diff)
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
-rw-r--r--src/backend/jit/llvm/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/jit/llvm/Makefile b/src/backend/jit/llvm/Makefile
index 0268bd46d5c..2da122a391e 100644
--- a/src/backend/jit/llvm/Makefile
+++ b/src/backend/jit/llvm/Makefile
@@ -22,6 +22,12 @@ endif
PGFILEDESC = "llvmjit - JIT using LLVM"
NAME = llvmjit
+# LLVM 14 produces deprecation warnings. We'll need to make some changes
+# before the relevant functions are removed, but for now silence the warnings.
+ifeq ($(GCC), yes)
+LLVM_CFLAGS += -Wno-deprecated-declarations
+endif
+
# All files in this directory use LLVM.
CFLAGS += $(LLVM_CFLAGS)
CXXFLAGS += $(LLVM_CXXFLAGS)