OSDN Git Service

virtio-pci: build for uninitialized return value in vq_vector_unmask
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 14 Jan 2013 19:20:12 +0000 (13:20 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 14 Jan 2013 19:36:12 +0000 (13:36 -0600)
commit53510bfc1256711365cd2a841649f3ad5a79790f
treef3fb13dd1870afece3194143616073232f8014f6
parentbe657dea4bec90031cc66a111a772299bfca7fa5
virtio-pci: build for uninitialized return value in vq_vector_unmask

Fixes the following:

/home/mdroth/w/qemu2.git/hw/virtio-pci.c: In function
‘kvm_virtio_pci_vector_unmask’:
/home/mdroth/w/qemu2.git/hw/virtio-pci.c:673:12: error: ‘ret’ may be
used uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors
make: *** [hw/virtio-pci.o] Error 1
make: *** Waiting for unfinished jobs....

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-pci.c