pgsql: Use -Wno-format-truncation and -Wno-stringop-truncation,if avai - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Use -Wno-format-truncation and -Wno-stringop-truncation,if avai
Date
Msg-id [email protected]
Whole thread Raw
List pgsql-committers
Use -Wno-format-truncation and -Wno-stringop-truncation, if available.

gcc 8 has started emitting some warnings that are largely useless for
our purposes, particularly since they complain about code following
the project-standard coding convention that path names are assumed
to be shorter than MAXPGPATH.  Even if we make the effort to remove
that assumption in some future release, the changes wouldn't get
back-patched.  Hence, just suppress these warnings, on compilers that
have these switches.

Backpatch to all supported branches.

Discussion: https://postgr.es/m/[email protected]

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/119290be6fe3bea12053042f5d3eaa135a260a52

Modified Files
--------------
configure    | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 12 +++++++++
2 files changed, 92 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str.
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Remove INCLUDE attributes section from docs.