qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/usb: Silence compiler warnings in USB code when compiling


From: Thomas Huth
Subject: Re: [PATCH] hw/usb: Silence compiler warnings in USB code when compiling with -Wshadow
Date: Wed, 4 Oct 2023 15:03:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

On 04/10/2023 13.44, Markus Armbruster wrote:
I got one more:

../hw/usb/host-libusb.c: In function ‘usb_host_open’:
../hw/usb/host-libusb.c:1013:13: warning: declaration of ‘rc’ shadows a 
previous local [-Wshadow=compatible-local]
  1013 |         int rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL);
       |             ^~
../hw/usb/host-libusb.c:954:9: note: shadowed declaration is here
   954 |     int rc;
       |         ^~


Drat, I missed that indeed. I'll send a v2.

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]