]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: Clean up local variable shadowing in spapr_init_cpus()
authorCédric Le Goater <clg@kaod.org>
Mon, 18 Sep 2023 14:58:46 +0000 (16:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Sep 2023 08:07:17 +0000 (10:07 +0200)
commitc0b648d9e9747f44fc3c4503b3a06741b0d6e4a8
tree7f3616b7ec8b2a639b62e2a1eeacdc9543daf5be
parentbd87a59f52c85e504323c3dbdacc84e2cefce8d1
spapr: Clean up local variable shadowing in spapr_init_cpus()

Remove extra 'i' variable to fix this warning :

  ../hw/ppc/spapr.c: In function ‘spapr_init_cpus’:
  ../hw/ppc/spapr.c:2668:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
   2668 |         int i;
        |             ^
  ../hw/ppc/spapr.c:2645:9: note: shadowed declaration is here
   2645 |     int i;
        |         ^

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20230918145850.241074-5-clg@kaod.org>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/ppc/spapr.c