|
From: | Markus Armbruster |
Subject: | Re: [PATCH] hw/usb: Silence compiler warnings in USB code when compiling with -Wshadow |
Date: | Wed, 04 Oct 2023 13:44:26 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
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; | ^~
[Prev in Thread] | Current Thread | [Next in Thread] |