diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-09-04 18:12:26 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-09-29 10:07:16 +0200 |
commit | 09e24b10de02b19d193d85645c19a68b98263bef (patch) | |
tree | 71da70d4ba276236d8ebb81ae496940bade0f6b1 /net | |
parent | 4705c8e5a2d0e62a276ce21e6b15bff0e7e42bdf (diff) | |
download | qemu-09e24b10de02b19d193d85645c19a68b98263bef.zip qemu-09e24b10de02b19d193d85645c19a68b98263bef.tar.gz qemu-09e24b10de02b19d193d85645c19a68b98263bef.tar.bz2 |
hw/nios2: Clean up local variable shadowing
Fix:
hw/nios2/10m50_devboard.c: In function ‘nios2_10m50_ghrd_init’:
hw/nios2/10m50_devboard.c:101:22: warning: declaration of ‘dev’ shadows a previous local [-Wshadow=compatible-local]
101 | DeviceState *dev = qdev_new(TYPE_NIOS2_VIC);
| ^~~
hw/nios2/10m50_devboard.c:60:18: note: shadowed declaration is here
60 | DeviceState *dev;
| ^~~
hw/nios2/10m50_devboard.c:110:18: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
110 | for (int i = 0; i < 32; i++) {
| ^
hw/nios2/10m50_devboard.c:67:9: note: shadowed declaration is here
67 | int i;
| ^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230904161235.84651-15-philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions