diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-04 15:22:08 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-04 15:24:15 -0600 |
commit | 0123c486367ab77c3c5ed349616a862eb474a03f (patch) | |
tree | 8bee734738a1b1a0f2b2881fc0733fbf6fa631b7 /target-s390x | |
parent | ded67782e6d06069873adce7f9074d273ae75760 (diff) | |
download | qemu-0123c486367ab77c3c5ed349616a862eb474a03f.zip qemu-0123c486367ab77c3c5ed349616a862eb474a03f.tar.gz qemu-0123c486367ab77c3c5ed349616a862eb474a03f.tar.bz2 |
s390x: silence warning from GCC on uninitialized values
As best I can tell, this is a false positive.
[aliguori@ccnode4 qemu-s390]$ make
CC s390x-softmmu/target-s390x/helper.o
/home/aliguori/git/qemu/target-s390x/helper.c: In function ‘do_interrupt’:
/home/aliguori/git/qemu/target-s390x/helper.c:673:17: error: ‘addr’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
/home/aliguori/git/qemu/target-s390x/helper.c:620:20: note: ‘addr’ was declared here
/home/aliguori/git/qemu/target-s390x/helper.c:673:17: error: ‘mask’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
/home/aliguori/git/qemu/target-s390x/helper.c:620:14: note: ‘mask’ was declared here
cc1: all warnings being treated as errors
make[1]: *** [target-s390x/helper.o] Error 1
make: *** [subdir-s390x-softmmu] Error 2
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-s390x')
-rw-r--r-- | target-s390x/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-s390x/helper.c b/target-s390x/helper.c index 3180b90..95f1ff5 100644 --- a/target-s390x/helper.c +++ b/target-s390x/helper.c @@ -617,7 +617,7 @@ static void do_ext_interrupt(CPUS390XState *env) static void do_io_interrupt(CPUS390XState *env) { - uint64_t mask, addr; + uint64_t mask = 0, addr = 0; LowCore *lowcore; IOIntQueue *q; uint8_t isc; |