This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING] [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)
- From: Jason Merrill <jason at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Tue, 19 Jun 2018 14:46:06 -0400
- Subject: Re: [PING] [PATCH] refine -Wstringop-truncation and -Wsizeof-pointer-memaccess for strncat of nonstrings (PR 85602)
- References: <fa15cbf1-151d-81aa-8994-fb22324de875@gmail.com> <0ccbffbe-5998-08c1-5536-8adc21beac0a@gmail.com> <28407c6a-9b5b-eef4-83ee-615ed5bed041@gmail.com> <CADzB+2kTYWBPdBSuzToJKerGE1MwDeCYdpez85wswLFx1hhohw@mail.gmail.com>
On Tue, Jun 19, 2018 at 2:44 PM, Jason Merrill <jason@redhat.com> wrote:
> On Tue, May 29, 2018 at 3:21 PM, Martin Sebor <msebor@gmail.com> wrote:
>> To make review and testing easier (thank you, Franz), attached
>> is an updated patch rebased on top of today's trunk.
>>
>> (Note that the patch intentionally doesn't suppress the warning
>> for the submitted test case without adding the nonstring attribute.)
>
> I needed to adjust the testcase to avoid spurious failures with make-g++:
Ah, looks like you beat me to it. :)
Jason