diff options
author | Stefan Weil <sw@weilnetz.de> | 2016-07-29 08:59:29 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-08-02 13:33:47 +0200 |
commit | 3bf2b3a17274e5e3ca41ba01a677ea35e060febc (patch) | |
tree | 0af92b53d7287d0ccece176f91bd5a234107d5e2 | |
parent | cc0100f464c94bf80ad36cd432f4a1ed58126b60 (diff) | |
download | qemu-3bf2b3a17274e5e3ca41ba01a677ea35e060febc.tar.gz qemu-3bf2b3a17274e5e3ca41ba01a677ea35e060febc.tar.bz2 qemu-3bf2b3a17274e5e3ca41ba01a677ea35e060febc.zip |
wxx: Fix compiler warning for host-libusb.c
The local variable i is unsed for Windows.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1469775569-7869-1-git-send-email-sw@weilnetz.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | hw/usb/host-libusb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index da59c294bb..9af0580ab0 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); } |