]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
qemu-traditional: Fix build warnings on Wheezy xen-4.4.0 xen-4.4.0-rc2 xen-4.4.0-rc3 xen-4.4.0-rc4 xen-4.4.0-rc5 xen-4.4.0-rc6
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Dec 2013 15:25:14 +0000 (15:25 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 19 Dec 2013 15:19:49 +0000 (15:19 +0000)
commit7f5b3c338e0f8938ba575dec18255dcbee0c2ee2
treea5a8cc8dff81bdb36a084282140bb8da5ef0567c
parent96b58a44756a8821c108358439b0f2c06e531159
qemu-traditional: Fix build warnings on Wheezy

  CC    i386-dm/eepro100.o
hw/eepro100.c: In function ‘eepro100_read4’:
hw/eepro100.c:1232:5: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
hw/eepro100.c: In function ‘eepro100_read2’:
hw/eepro100.c:1202:5: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
hw/eepro100.c: In function ‘eepro100_read1’:
hw/eepro100.c:1179:5: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Use ~0 to match the behaviour of real hardware.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/eepro100.c