pgsql: jit: Remove -Wno-deprecated-declarations in 18+. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: jit: Remove -Wno-deprecated-declarations in 18+.
Date
Msg-id E1vaOtI-003OsU-2F@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2e61482da2ed638767c9e0f6abf586d8ad339a65

Modified Files
--------------
src/backend/jit/llvm/Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: jit: Remove -Wno-deprecated-declarations in 18+.
Next
From: Michael Paquier
Date:
Subject: pgsql: Change GetMultiXactInfo() to return the next multixact offset