Re: [Qemu-devel] [PATCH v2 4/5] linux-user/uname: Fix GCC 9 build warnings

2019-05-02 Thread Alistair Francis
On Wed, May 1, 2019 at 5:00 AM Eric Blake wrote: > > On 5/1/19 4:40 AM, Laurent Vivier wrote: > > On 01/05/2019 01:28, Alistair Francis wrote: > >> Fix this warning when building with GCC9 on Fedora 30: > >> In function ‘strncpy’, > >> inlined from ‘sys_uname’ at > >> /home/alistair/qemu/linu

Re: [Qemu-devel] [PATCH v2 4/5] linux-user/uname: Fix GCC 9 build warnings

2019-05-01 Thread Eric Blake
On 5/1/19 4:40 AM, Laurent Vivier wrote: > On 01/05/2019 01:28, Alistair Francis wrote: >> Fix this warning when building with GCC9 on Fedora 30: >> In function ‘strncpy’, >> inlined from ‘sys_uname’ at /home/alistair/qemu/linux-user/uname.c:94:3: >> /usr/include/bits/string_fortified.h:106:10:

Re: [Qemu-devel] [PATCH v2 4/5] linux-user/uname: Fix GCC 9 build warnings

2019-05-01 Thread Daniel P . Berrangé
On Wed, May 01, 2019 at 11:40:13AM +0200, Laurent Vivier wrote: > On 01/05/2019 01:28, Alistair Francis wrote: > > Fix this warning when building with GCC9 on Fedora 30: > > In function ‘strncpy’, > > inlined from ‘sys_uname’ at /home/alistair/qemu/linux-user/uname.c:94:3: > > /usr/include/bits

Re: [Qemu-devel] [PATCH v2 4/5] linux-user/uname: Fix GCC 9 build warnings

2019-05-01 Thread Laurent Vivier
On 01/05/2019 11:44, Daniel P. Berrangé wrote: > On Wed, May 01, 2019 at 11:40:13AM +0200, Laurent Vivier wrote: >> On 01/05/2019 01:28, Alistair Francis wrote: >>> Fix this warning when building with GCC9 on Fedora 30: >>> In function ‘strncpy’, >>> inlined from ‘sys_uname’ at /home/alistair/q

Re: [Qemu-devel] [PATCH v2 4/5] linux-user/uname: Fix GCC 9 build warnings

2019-05-01 Thread Laurent Vivier
On 01/05/2019 01:28, Alistair Francis wrote: > Fix this warning when building with GCC9 on Fedora 30: > In function ‘strncpy’, > inlined from ‘sys_uname’ at /home/alistair/qemu/linux-user/uname.c:94:3: > /usr/include/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ > output may be tr

[Qemu-devel] [PATCH v2 4/5] linux-user/uname: Fix GCC 9 build warnings

2019-04-30 Thread Alistair Francis
Fix this warning when building with GCC9 on Fedora 30: In function ‘strncpy’, inlined from ‘sys_uname’ at /home/alistair/qemu/linux-user/uname.c:94:3: /usr/include/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output may be truncated copying 64 bytes from a string of length 64 [-