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