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

From Tom Lane
Subject pgsql: Clean up compilation warnings coming from PL/Perl with clang-12~
Date
Msg-id E1mwXvV-000592-2w@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.

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

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/580261836c115c13aa9eaeb4411f887138cedec4

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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Make ecpg's rjulmdy() and rmdyjul() agree with their declaration
Next
From: Tom Lane
Date:
Subject: pgsql: Reformat imath.c macro to remove -Wmisleading-indentation warnin