mirror of https://gitee.com/openkylin/qemu.git
qemu-io: suppress a warning with gcc 4.0.2
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
2bff4b6fbe
commit
6474bd6909
|
@ -492,7 +492,8 @@ readv_f(int argc, char **argv)
|
||||||
int c, cnt;
|
int c, cnt;
|
||||||
char *buf;
|
char *buf;
|
||||||
int64_t offset;
|
int64_t offset;
|
||||||
int total;
|
/* Some compilers get confused and warn if this is not initialized. */
|
||||||
|
int total = 0;
|
||||||
int nr_iov;
|
int nr_iov;
|
||||||
QEMUIOVector qiov;
|
QEMUIOVector qiov;
|
||||||
int pattern = 0;
|
int pattern = 0;
|
||||||
|
@ -747,7 +748,8 @@ writev_f(int argc, char **argv)
|
||||||
int c, cnt;
|
int c, cnt;
|
||||||
char *buf;
|
char *buf;
|
||||||
int64_t offset;
|
int64_t offset;
|
||||||
int total;
|
/* Some compilers get confused and warn if this is not initialized. */
|
||||||
|
int total = 0;
|
||||||
int nr_iov;
|
int nr_iov;
|
||||||
int pattern = 0xcd;
|
int pattern = 0xcd;
|
||||||
QEMUIOVector qiov;
|
QEMUIOVector qiov;
|
||||||
|
|
Loading…
Reference in New Issue