Re: [Qemu-devel] [PATCH] block/vpc: fix uninitialised variable compiler warning

2017-07-27 Thread no-reply
Hi, This series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Type: series Subject: [Qemu-devel] [PATCH] block/vpc: fix uninitialised variable compiler warning Message-id: 1500625265

Re: [Qemu-devel] [PATCH] block/vpc: fix uninitialised variable compiler warning

2017-07-21 Thread Peter Maydell
On 21 July 2017 at 09:21, Mark Cave-Ayland wrote: > Since commit cfc87e00 "block/vpc.c: Handle write failures in > get_image_offset()" older versions of gcc (in this case 4.7) incorrectly > warn that "ret" can be used uninitialised in vpc_co_pwritev(). > > Setting ret to 0 at the start of vpc_co_p

Re: [Qemu-devel] [PATCH] block/vpc: fix uninitialised variable compiler warning

2017-07-21 Thread Stefan Hajnoczi
On Fri, Jul 21, 2017 at 09:21:05AM +0100, Mark Cave-Ayland wrote: > Since commit cfc87e00 "block/vpc.c: Handle write failures in > get_image_offset()" older versions of gcc (in this case 4.7) incorrectly > warn that "ret" can be used uninitialised in vpc_co_pwritev(). > > Setting ret to 0 at the s

Re: [Qemu-devel] [PATCH] block/vpc: fix uninitialised variable compiler warning

2017-07-21 Thread Eric Blake
On 07/21/2017 03:21 AM, Mark Cave-Ayland wrote: > Since commit cfc87e00 "block/vpc.c: Handle write failures in > get_image_offset()" older versions of gcc (in this case 4.7) incorrectly > warn that "ret" can be used uninitialised in vpc_co_pwritev(). > > Setting ret to 0 at the start of vpc_co_pwr

[Qemu-devel] [PATCH] block/vpc: fix uninitialised variable compiler warning

2017-07-21 Thread Mark Cave-Ayland
Since commit cfc87e00 "block/vpc.c: Handle write failures in get_image_offset()" older versions of gcc (in this case 4.7) incorrectly warn that "ret" can be used uninitialised in vpc_co_pwritev(). Setting ret to 0 at the start of vpc_co_pwritev() prevents the warning in gcc 4.7 and enables compila