pgsql: Clean up compilation warnings coming from PL/Perl with clang-12~ - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Clean up compilation warnings coming from PL/Perl with clang-12~
Date
Msg-id E1mkzGI-0003IL-Mp@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Clean up compilation warnings coming from PL/Perl with clang-12~

clang-12 has introduced -Wcompound-token-split-by-macro, that is causing
a large amount of warnings when building PL/Perl because of its
interactions with upstream Perl.  This commit adds one -Wno to CFLAGS at
./configure time if the flag is supported by the compiler to silence all
those warnings.

Upstream perl has fixed this issue, but it is going to take some time
before this is spread across the buildfarm, and we have noticed that
some animals would be useful with an extra -Werror to help with the
detection of incorrect placeholders (see b0cf544), dangomushi being
one.

Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/YYr3qYa/R3Gw+Sbg@paquier.xyz
Backpatch-through: 10

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/11b05a16d46263991dcfd7fa13b48a6b0e82dd1a

Modified Files
--------------
configure    | 42 ++++++++++++++++++++++++++++++++++++++++++
configure.in |  8 ++++++++
2 files changed, 50 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Doc: improve protocol spec for logical replication Type messages
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix buffer overrun in unicode string normalization with empty in