]> git.proxmox.com Git - mirror_qemu.git/commit
hw/usb: Silence compiler warnings in USB code when compiling with -Wshadow
authorThomas Huth <thuth@redhat.com>
Wed, 4 Oct 2023 13:08:22 +0000 (15:08 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 6 Oct 2023 11:27:48 +0000 (13:27 +0200)
commite7121b15411d0a9220d82d293537b91841f47c82
tree3283695ed1fbbfd1c049a3fcf323ac3e73c94cdd
parent0edc9e45f3d6b0601f3628df2ca78b3ee78aa662
hw/usb: Silence compiler warnings in USB code when compiling with -Wshadow

Rename variables or remove nested definitions where it makes sense,
so that we can finally compile the USB code with "-Wshadow", too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20231004130822.113343-1-thuth@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/usb/desc.c
hw/usb/dev-hub.c
hw/usb/dev-storage.c
hw/usb/hcd-xhci.c
hw/usb/host-libusb.c