]> granicus.if.org Git - postgresql/commit
Use -Wno-format-truncation and -Wno-stringop-truncation, if available.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Jun 2018 19:34:07 +0000 (15:34 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Jun 2018 19:34:07 +0000 (15:34 -0400)
commit119290be6fe3bea12053042f5d3eaa135a260a52
tree6e3729cb5774ccabfef2375909190df13a843d3d
parent58065f9eed68fae83ddf98c8dff24ae8f0b62f0c
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/1524563856.26306.9.camel@gunduz.org
configure
configure.in