Re: [PATCH 3/4] hw/arm/smmuv3.c: Avoid shadowing variable

2023-09-26 Thread Eric Auger
Hi Peter, On 9/22/23 17:29, Peter Maydell wrote: > Avoid shadowing a variable in smmuv3_notify_iova(): > > ../../hw/arm/smmuv3.c: In function ‘smmuv3_notify_iova’: > ../../hw/arm/smmuv3.c:1043:23: warning: declaration of ‘event’ shadows a > previous local [-Wshadow=local] > 1043 | SMMUEv

Re: [PATCH 3/4] hw/arm/smmuv3.c: Avoid shadowing variable

2023-09-22 Thread Philippe Mathieu-Daudé
On 22/9/23 17:29, Peter Maydell wrote: Avoid shadowing a variable in smmuv3_notify_iova(): ../../hw/arm/smmuv3.c: In function ‘smmuv3_notify_iova’: ../../hw/arm/smmuv3.c:1043:23: warning: declaration of ‘event’ shadows a previous local [-Wshadow=local] 1043 | SMMUEventInfo event = {.i

[PATCH 3/4] hw/arm/smmuv3.c: Avoid shadowing variable

2023-09-22 Thread Peter Maydell
Avoid shadowing a variable in smmuv3_notify_iova(): ../../hw/arm/smmuv3.c: In function ‘smmuv3_notify_iova’: ../../hw/arm/smmuv3.c:1043:23: warning: declaration of ‘event’ shadows a previous local [-Wshadow=local] 1043 | SMMUEventInfo event = {.inval_ste_allowed = true}; |