]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Clean up compilation warnings coming from PL/Perl with clang-12~
authorMichael Paquier <michael@paquier.xyz>
Thu, 11 Nov 2021 01:51:29 +0000 (10:51 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 11 Nov 2021 01:51:29 +0000 (10:51 +0900)
commit11b05a16d46263991dcfd7fa13b48a6b0e82dd1a
tree19a711fda7b606c924e4978a6a7451ed0f039ee5
parentfcfb40dcc13189ed1d6791a11eb553d2329f4f6e
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
configure
configure.in