summary refs log tree commit diff stats
path: root/hw/timer/aspeed_timer.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2023-09-22 17:59:22 +0200
committerMarkus Armbruster <armbru@redhat.com>2023-09-29 10:07:19 +0200
commite8874c06a7da70a59c7c7ac2cf0c3612cbc82f6d (patch)
tree978c61ee8f8c21884152d8c037365bf0e29ce8c6 /hw/timer/aspeed_timer.c
parentce6c368d96ed88c2c8505c825b771e8632e84a88 (diff)
downloadfocaccia-qemu-e8874c06a7da70a59c7c7ac2cf0c3612cbc82f6d.tar.gz
focaccia-qemu-e8874c06a7da70a59c7c7ac2cf0c3612cbc82f6d.zip
aspeed: Clean up local variable shadowing
Remove superfluous local 'irq' variables and use the one define at the
top of the routine. This fixes warnings in aspeed_soc_ast2600_realize()
such as :

  ../hw/arm/aspeed_ast2600.c: In function ‘aspeed_soc_ast2600_realize’:
  ../hw/arm/aspeed_ast2600.c:420:18: warning: declaration of ‘irq’ shadows a previous local [-Wshadow=compatible-local]
    420 |         qemu_irq irq = aspeed_soc_get_irq(s, ASPEED_DEV_TIMER1 + i);
        |                  ^~~
  ../hw/arm/aspeed_ast2600.c:312:14: note: shadowed declaration is here
    312 |     qemu_irq irq;
        |              ^~~

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20230922155924.1172019-3-clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/timer/aspeed_timer.c')
0 files changed, 0 insertions, 0 deletions