]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
wxx: Fix compiler warning for host-libusb.c
authorStefan Weil <sw@weilnetz.de>
Fri, 29 Jul 2016 06:59:29 +0000 (08:59 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 2 Aug 2016 11:33:47 +0000 (13:33 +0200)
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>
hw/usb/host-libusb.c

index da59c294bb100a77d932643a715bf7b28258470c..9af0580ab0b4f8dcd55e5b588d46a657236ec2a9 100644 (file)
@@ -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);
         }