diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-12-23 15:35:17 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-12-23 15:35:17 +0000 |
commit | 6474bd6909eb14f89081ae7199ab0ed1bc5211b1 (patch) | |
tree | 196c2c53551cfc7593d4dfe2affabead622005b0 /qemu-io.c | |
parent | 2bff4b6fbecf87f91bce64ad99e94540ed9f9f51 (diff) | |
download | qemu-6474bd6909eb14f89081ae7199ab0ed1bc5211b1.zip qemu-6474bd6909eb14f89081ae7199ab0ed1bc5211b1.tar.gz qemu-6474bd6909eb14f89081ae7199ab0ed1bc5211b1.tar.bz2 |
qemu-io: suppress a warning with gcc 4.0.2
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-io.c')
-rw-r--r-- | qemu-io.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -492,7 +492,8 @@ readv_f(int argc, char **argv) int c, cnt; char *buf; int64_t offset; - int total; + /* Some compilers get confused and warn if this is not initialized. */ + int total = 0; int nr_iov; QEMUIOVector qiov; int pattern = 0; @@ -747,7 +748,8 @@ writev_f(int argc, char **argv) int c, cnt; char *buf; int64_t offset; - int total; + /* Some compilers get confused and warn if this is not initialized. */ + int total = 0; int nr_iov; int pattern = 0xcd; QEMUIOVector qiov; |