[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/6] wxx: Fix compiler warning for host-libusb.c
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 1/6] wxx: Fix compiler warning for host-libusb.c |
Date: |
Wed, 3 Aug 2016 15:05:44 +0200 |
From: Stefan Weil <address@hidden>
The local variable i is unsed for Windows.
Signed-off-by: Stefan Weil <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/host-libusb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index da59c29..9af0580 100644
--- a/hw/usb/host-libusb.c
+++ b/hw/usb/host-libusb.c
@@ -235,7 +235,7 @@ static int usb_host_init(void)
#ifndef CONFIG_WIN32
const struct libusb_pollfd **poll;
#endif
- int i, rc;
+ int rc;
if (ctx) {
return 0;
@@ -253,6 +253,7 @@ static int usb_host_init(void)
ctx);
poll = libusb_get_pollfds(ctx);
if (poll) {
+ int i;
for (i = 0; poll[i] != NULL; i++) {
usb_host_add_fd(poll[i]->fd, poll[i]->events, ctx);
}
--
1.8.3.1
- [Qemu-devel] [PULL for-2.7 0/6] usb patch queue., Gerd Hoffmann, 2016/08/03
- [Qemu-devel] [PULL 3/6] ehci: faster frame index calculation for skipped frames, Gerd Hoffmann, 2016/08/03
- [Qemu-devel] [PULL 1/6] wxx: Fix compiler warning for host-libusb.c,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 2/6] wxx: Fix compilation of host-libusb.c, Gerd Hoffmann, 2016/08/03
- [Qemu-devel] [PULL 5/6] xen: drain submit queue in xen-usb before removing device, Gerd Hoffmann, 2016/08/03
- [Qemu-devel] [PULL 6/6] xen: use a common function for pv and hvm guest backend register calls, Gerd Hoffmann, 2016/08/03
- [Qemu-devel] [PULL 4/6] xen: when removing a backend don't remove many of them, Gerd Hoffmann, 2016/08/03
- Re: [Qemu-devel] [PULL for-2.7 0/6] usb patch queue., Peter Maydell, 2016/08/03