Re: Back-patching -Wno-format-truncation. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Back-patching -Wno-format-truncation.
Date
Msg-id 10452.1583279056@sss.pgh.pa.us
Whole thread Raw
In response to Back-patching -Wno-format-truncation.  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Responses Re: Back-patching -Wno-format-truncation.
List pgsql-hackers
Kyotaro Horiguchi <horikyota.ntt@gmail.com> writes:
> If I build the past versions from 9.4 to 9.6 with GCC8, I find it
> really annoying to see the build screen filled with massive number of
> warnings of format-truncation, stringop-truncation and
> format-overflow.

> Just applying the commit 416e3e318c as-is silences the first two.

> The last one is silenced by applying 5d923eb29b.

> The commit message is sayiing that it is back-patched back at least to
> 9.4, but it seem that the versions from 9.4 to 9.6 haven't got the
> patches.

> Tom, would you back-patch the two commits to from 9.4 to 9.6?

Uh ... it sure looks to me like they were back-patched as advertised.
Do you not have these back-branch commits?

Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master Release: REL_11_BR [e71658523] 2018-06-16 15:34:07 -0400
Branch: REL_10_STABLE Release: REL_10_5 [416e3e318] 2018-06-16 15:34:07 -0400
Branch: REL9_6_STABLE Release: REL9_6_10 [119290be6] 2018-06-16 15:34:07 -0400
Branch: REL9_5_STABLE Release: REL9_5_14 [14b69a532] 2018-06-16 15:34:07 -0400
Branch: REL9_4_STABLE Release: REL9_4_19 [817d605e4] 2018-06-16 15:34:07 -0400
Branch: REL9_3_STABLE Release: REL9_3_24 [ec5547e56] 2018-06-16 15:34:07 -0400

    Use -Wno-format-truncation and -Wno-stringop-truncation, if available.

Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master Release: REL_11_BR [5d923eb29] 2018-06-16 14:45:47 -0400
Branch: REL_10_STABLE Release: REL_10_5 [189332615] 2018-06-16 14:45:47 -0400
Branch: REL9_6_STABLE Release: REL9_6_10 [8870e2978] 2018-06-16 14:45:47 -0400
Branch: REL9_5_STABLE Release: REL9_5_14 [f3be5d3e7] 2018-06-16 14:45:47 -0400
Branch: REL9_4_STABLE Release: REL9_4_19 [fd079dd09] 2018-06-16 14:45:47 -0400
Branch: REL9_3_STABLE Release: REL9_3_24 [3243cbc08] 2018-06-16 14:45:47 -0400

    Use snprintf not sprintf in pg_waldump's timestamptz_to_str.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Is it time to retire type "opaque"?
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Back-patching -Wno-format-truncation.