Re: [Qemu-devel] [PATCH] block: Fix compiler warning (-Werror=uninitialized)

2013-09-20 Thread Stefan Hajnoczi
On Thu, Sep 19, 2013 at 06:59:23PM +0200, Andreas Färber wrote: Am 17.09.2013 18:43, schrieb Stefan Weil: The patch fixes a warning from gcc (Debian 4.6.3-14+rpi1) 4.6.3: block/stream.c:141:22: error: ‘copy’ may be used uninitialized in this function [-Werror=uninitialized] This is

Re: [Qemu-devel] [PATCH] block: Fix compiler warning (-Werror=uninitialized)

2013-09-19 Thread Stefan Hajnoczi
On Tue, Sep 17, 2013 at 06:43:16PM +0200, Stefan Weil wrote: The patch fixes a warning from gcc (Debian 4.6.3-14+rpi1) 4.6.3: block/stream.c:141:22: error: ‘copy’ may be used uninitialized in this function [-Werror=uninitialized] This is not a real bug - a better compiler would not

Re: [Qemu-devel] [PATCH] block: Fix compiler warning (-Werror=uninitialized)

2013-09-19 Thread Paolo Bonzini
Il 19/09/2013 18:59, Andreas Färber ha scritto: Am 17.09.2013 18:43, schrieb Stefan Weil: The patch fixes a warning from gcc (Debian 4.6.3-14+rpi1) 4.6.3: block/stream.c:141:22: error: ‘copy’ may be used uninitialized in this function [-Werror=uninitialized] This is not a real bug - a

Re: [Qemu-devel] [PATCH] block: Fix compiler warning (-Werror=uninitialized)

2013-09-19 Thread Andreas Färber
Am 17.09.2013 18:43, schrieb Stefan Weil: The patch fixes a warning from gcc (Debian 4.6.3-14+rpi1) 4.6.3: block/stream.c:141:22: error: ‘copy’ may be used uninitialized in this function [-Werror=uninitialized] This is not a real bug - a better compiler would not complain. Now 'copy'

[Qemu-devel] [PATCH] block: Fix compiler warning (-Werror=uninitialized)

2013-09-17 Thread Stefan Weil
The patch fixes a warning from gcc (Debian 4.6.3-14+rpi1) 4.6.3: block/stream.c:141:22: error: ‘copy’ may be used uninitialized in this function [-Werror=uninitialized] This is not a real bug - a better compiler would not complain. Now 'copy' has always a defined value, so the check for ret = 0