]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commit
qemu-traditional: Fix build warnings on Wheezy xen-4.3.2 xen-4.3.2-rc1
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, 9 Jan 2014 12:26:38 +0000 (12:26 +0000)
commit044c9e608e67defea4fc9c9ef4286e85a99d68c2
tree490777690ca33e763aee6a9833e4181505c1c2b7
parent2c4d7159d8a3273e63ce22c7e7544c182f6d2ca5
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>
(cherry picked from commit 7f5b3c338e0f8938ba575dec18255dcbee0c2ee2)
hw/eepro100.c