Clean up compilation warnings coming from PL/Perl with clang-12~
authorTom Lane <[email protected]>
Sun, 12 Dec 2021 23:05:59 +0000 (18:05 -0500)
committerTom Lane <[email protected]>
Sun, 12 Dec 2021 23:05:59 +0000 (18:05 -0500)
commitc16a78147ca104602d18c8cc19ff3ed98606717c
treefe1c0c56a91ac0f413b13015d9f70c7783f28268
parenta4116b8d5a4f68803452d8f1aa3f74f302049a90
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.

This back-patches commit 9ff47ea41 into out-of-support branches,
pursuant to newly-established project policy.  The point is to
suppress scary-looking warnings so that people building these
branches needn't expend brain cells verifying that it's safe
to ignore the warnings.

Discussion: https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77cb3b@enterprisedb.com
configure
configure.in