diff options
author | Cédric Le Goater <clg@kaod.org> | 2023-10-06 07:35:26 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-10-06 13:27:48 +0200 |
commit | 0edc9e45f3d6b0601f3628df2ca78b3ee78aa662 (patch) | |
tree | a23a8ea6c36fe2c02dd93c39988ab65f87cd4c36 /hw/usb/dev-hub.c | |
parent | 8b7b9c5c88a8886312d3b9bc5e3615d21df143b6 (diff) | |
download | qemu-0edc9e45f3d6b0601f3628df2ca78b3ee78aa662.zip qemu-0edc9e45f3d6b0601f3628df2ca78b3ee78aa662.tar.gz qemu-0edc9e45f3d6b0601f3628df2ca78b3ee78aa662.tar.bz2 |
target/ppc: Clean up local variable shadowing in kvm_arch_*_registers()
Remove extra 'i' variable to fix this warning :
../target/ppc/kvm.c: In function ‘kvm_arch_put_registers’:
../target/ppc/kvm.c:963:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
963 | int i;
| ^
../target/ppc/kvm.c:906:9: note: shadowed declaration is here
906 | int i;
| ^
../target/ppc/kvm.c: In function ‘kvm_arch_get_registers’:
../target/ppc/kvm.c:1265:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
1265 | int i;
| ^
../target/ppc/kvm.c:1212:9: note: shadowed declaration is here
1212 | int i, ret;
| ^
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20231006053526.1031252-1-clg@kaod.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions