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

2013-09-25 Thread Kevin Wolf
Am 22.09.2013 um 08:19 hat Stefan Weil geschrieben: 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

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

2013-09-23 Thread Stefan Hajnoczi
On Sun, Sep 22, 2013 at 08:19:10AM +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

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

2013-09-22 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