]> git.ipfire.org Git - thirdparty/postgresql.git/commit
jit: Remove -Wno-deprecated-declarations in 18+. REL_16_STABLE github/REL_16_STABLE
authorThomas Munro <tmunro@postgresql.org>
Tue, 30 Dec 2025 01:11:37 +0000 (14:11 +1300)
committerThomas Munro <tmunro@postgresql.org>
Tue, 30 Dec 2025 01:32:30 +0000 (14:32 +1300)
commitdfb9ff5904074976b2a27bc44735a2680303de6d
treea24e2fb7ff4aa01fe9d388216f28521559225823
parent4b9ce1ef609ba5a5eabc41a82d1a3e3710fc663f
jit: Remove -Wno-deprecated-declarations in 18+.

REL_18_STABLE and master have commit ee485912, so they always use the
newer LLVM opaque pointer functions.  Drop -Wno-deprecated-declarations
(commit a56e7b660) for code under jit/llvm in those branches, to catch
any new deprecation warnings that arrive in future version of LLVM.

Older branches continued to use functions marked deprecated in LLVM 14
and 15 (ie switched to the newer functions only for LLVM 16+), as a
precaution against unforeseen compatibility problems with bitcode
already shipped.  In those branches, the comment about warning
suppression is updated to explain that situation better.  In theory we
could suppress warnings only for LLVM 14 and 15 specifically, but that
isn't done here.

Backpatch-through: 14
Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/1407185.1766682319%40sss.pgh.pa.us
src/backend/jit/llvm/Makefile