qemu-e2k/hw/nios2
Philippe Mathieu-Daudé 09e24b10de 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>
2023-09-29 10:07:16 +02:00
..
10m50_devboard.c hw/nios2: Clean up local variable shadowing 2023-09-29 10:07:16 +02:00
boot.c trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a numeric value 2023-09-08 13:08:52 +03:00
boot.h Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
generic_nommu.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
Kconfig hw/nios2: Machine with a Vectored Interrupt Controller 2022-04-26 08:17:05 -07:00
meson.build hw/nios2: set machine->fdt in nios2_load_dtb() 2022-10-17 16:15:10 -03:00