Re: fixing more format truncation issues - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: fixing more format truncation issues
Date
Msg-id 20180316035104.GG2666@paquier.xyz
Whole thread Raw
In response to Re: fixing more format truncation issues  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Mar 15, 2018 at 12:12:18PM -0400, Tom Lane wrote:
> FWIW, I noticed while fooling with pre-release Fedora 28 that gcc 8.0.1
> emits a whole boatload of these warnings by default.  This patch doesn't
> seem to have moved the needle very much, either.  In a quick look, it
> seemed like a lot of them were things we simply wouldn't be interested
> in fixing ("yeah, the path length limit is MAXPGPATH, tough").  So
> I'm thinking we're going to be needing -Wno-format-truncation soon.

Maybe it is worth a try on Debian as well.  The base packages use GCC 7
but I can see that 8 is also available.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Chapman Flack
Date:
Subject: Re: Re: pgbench randomness initialization
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: PQHost() undefined behavior if connecting string contains bothhost and hostaddr types