Re: [PATCH 1/2] gcc8.1: fix strncpy bounds warnings

2018-06-16 Thread John Keeping
On Sat, Jun 16, 2018 at 09:12:08PM +0800, Andy Green wrote: > > > On June 16, 2018 9:04:48 PM GMT+08:00, John Keeping > wrote: > >On Wed, Jun 13, 2018 at 07:33:59AM +0800, Andy Green wrote: > >> These warnings are coming on default Fedora 28 build and probably > >others using gcc 8.1 > >> >

Re: [PATCH 1/2] gcc8.1: fix strncpy bounds warnings

2018-06-16 Thread Andy Green
On June 16, 2018 9:04:48 PM GMT+08:00, John Keeping wrote: >On Wed, Jun 13, 2018 at 07:33:59AM +0800, Andy Green wrote: >> These warnings are coming on default Fedora 28 build and probably >others using gcc 8.1 >> >> ../shared.c: In function ‘expand_macro’: >> ../shared.c:483:3: warning:

Re: [PATCH 1/2] gcc8.1: fix strncpy bounds warnings

2018-06-16 Thread John Keeping
On Wed, Jun 13, 2018 at 07:33:59AM +0800, Andy Green wrote: > These warnings are coming on default Fedora 28 build and probably others > using gcc 8.1 > > ../shared.c: In function ‘expand_macro’: > ../shared.c:483:3: warning: ‘strncpy’ specified bound depends on the length > of the source

[PATCH 1/2] gcc8.1: fix strncpy bounds warnings

2018-06-12 Thread Andy Green
These warnings are coming on default Fedora 28 build and probably others using gcc 8.1 ../shared.c: In function ‘expand_macro’: ../shared.c:483:3: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(name, value, len);