diff options
| author | Stefan Weil | 2013-09-22 08:19:10 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2013-09-25 16:21:28 +0200 |
| commit | c3e4f43a99549daa6e9b87350922e8339341c2ab (patch) | |
| tree | d13985f21f5cdd6c1c783e953f4beb08e53415a6 /qobject | |
| parent | block: introduce BlockDriver.bdrv_needs_filename to enable some drivers. (diff) | |
| download | qemu-c3e4f43a99549daa6e9b87350922e8339341c2ab.tar.gz qemu-c3e4f43a99549daa6e9b87350922e8339341c2ab.tar.xz qemu-c3e4f43a99549daa6e9b87350922e8339341c2ab.zip | |
block: Fix compiler warning (-Werror=uninitialized)
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
can be removed.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qobject')
0 files changed, 0 insertions, 0 deletions
