pgsql: Disable -Wdeprecated-non-prototype in the back branches.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Disable -Wdeprecated-non-prototype in the back branches.
Date: 2022-09-20 23:00:24
Message-ID: E1oamE4-001GBY-8J@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Disable -Wdeprecated-non-prototype in the back branches.

There doesn't seem to be any good ABI-preserving way to silence
clang 15's -Wdeprecated-non-prototype warnings about our tree-walk
APIs. While we've fixed it properly in HEAD, the only way to not
see hundreds of these in the back branches is to disable the
warnings. We're not going to do anything about them, so we might
as well disable them.

I noticed that we also get some of these warnings about fmgr.c's
support for V0 function call convention, in branches before v10
where we removed that. That's another area we aren't going to
change, so turning off the warning seems fine for that too.

Per project policy, this is a candidate for back-patching into
out-of-support branches: it suppresses annoying compiler warnings
but changes no behavior. Hence, back-patch all the way to 9.2.

Discussion: https://postgr.es/m/CA+hUKGKpHPDTv67Y+s6yiC8KH5OXeDg6a-twWo_xznKTcG0kSA@mail.gmail.com

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7d5d3f05bfab42b7858a104df5931519afffeee9

Modified Files
--------------
configure | 41 +++++++++++++++++++++++++++++++++++++++++
configure.in | 7 +++++++
2 files changed, 48 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2022-09-21 01:03:06 Re: pgsql: Fix createdb tests for C locale
Previous Message Tom Lane 2022-09-20 22:03:33 pgsql: Revise tree-walk APIs to improve spec compliance & silence warni