]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commit
qemu-traditional: Fix build warnings on Wheezy xen-4.2.4 xen-4.2.4-rc1 xen-4.2.5
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:44:42 +0000 (12:44 +0000)
commit8d7e96f625c4a58d721db413b032fd0bb5671b96
tree4ddeae45ae58c30b10a2819b27beab9654466d80
parent78dfbb6b362c8ee718cacf8e3a595eceb8c77d18
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)
(cherry picked from commit 044c9e608e67defea4fc9c9ef4286e85a99d68c2)
hw/eepro100.c