diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-01-15 12:56:41 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-19 16:42:03 -0600 |
commit | 40480d2bf4b4f5770b1f740672c5d890bf9cee19 (patch) | |
tree | f0093233585c77c60696417ac1b610290825dcc9 /usb-linux.c | |
parent | e389e937a7b94186449e0590bdc8f04ecbb1ab0b (diff) |
Fix QEMU_WARN_UNUSED_RESULT
Since commit 747bbdf7 QEMU_WARN_UNUSED_RESULT is never defined as it is
conditional on a define from config-host.h which is included only later.
Include that file earlier to get the warnings back.
Reactivating it unfortunately leads to some warnings about unused qdev_init
results. These calls are changed to qdev_init_nofail to avoid build failures.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit beb6f0de7aa19ce62fdd21a876b8c171ac7fde2e)
Diffstat (limited to 'usb-linux.c')
-rw-r--r-- | usb-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usb-linux.c b/usb-linux.c index 88728e927e..5619b30600 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1036,7 +1036,7 @@ USBDevice *usb_host_device_open(const char *devname) qdev_prop_set_uint32(&dev->qdev, "hostaddr", filter.addr); qdev_prop_set_uint32(&dev->qdev, "vendorid", filter.vendor_id); qdev_prop_set_uint32(&dev->qdev, "productid", filter.product_id); - qdev_init(&dev->qdev); + qdev_init_nofail(&dev->qdev); return dev; fail: |