Re: [PATCH 7/8] spapr/pci: Clean up local variable shadowing in spapr_phb_realize()

2023-09-19 Thread Cédric Le Goater
On 9/19/23 10:38, Harsh Prateek Bora wrote: On 9/18/23 20:28, Cédric Le Goater wrote: Rename SysBusDevice variable to avoid this warning :    ../hw/ppc/spapr_pci.c: In function ‘spapr_phb_realize’:    ../hw/ppc/spapr_pci.c:1872:24: warning: declaration of ‘s’ shadows a previous local

Re: [PATCH 7/8] spapr/pci: Clean up local variable shadowing in spapr_phb_realize()

2023-09-19 Thread Harsh Prateek Bora
On 9/18/23 20:28, Cédric Le Goater wrote: Rename SysBusDevice variable to avoid this warning : ../hw/ppc/spapr_pci.c: In function ‘spapr_phb_realize’: ../hw/ppc/spapr_pci.c:1872:24: warning: declaration of ‘s’ shadows a previous local [-Wshadow=local] 1872 | SpaprPhbState

[PATCH 7/8] spapr/pci: Clean up local variable shadowing in spapr_phb_realize()

2023-09-18 Thread Cédric Le Goater
Rename SysBusDevice variable to avoid this warning : ../hw/ppc/spapr_pci.c: In function ‘spapr_phb_realize’: ../hw/ppc/spapr_pci.c:1872:24: warning: declaration of ‘s’ shadows a previous local [-Wshadow=local] 1872 | SpaprPhbState *s; |^