On 22/9/23 18:04, Peter Xu wrote:
This patch fixes the warning of shadowed local variable:../hw/i386/intel_iommu.c: In function ‘vtd_address_space_unmap’: ../hw/i386/intel_iommu.c:3773:18: warning: declaration of ‘size’ shadows a previous local [-Wshadow=compatible-local] 3773 | uint64_t size = mask + 1; | ^~~~ ../hw/i386/intel_iommu.c:3747:12: note: shadowed declaration is here 3747 | hwaddr size, remain; | ^~~~ Cc: Jason Wang <[email protected]> Cc: Eric Auger <[email protected]> Cc: Michael S. Tsirkin <[email protected]> Cc: Markus Armbruster <[email protected]> Signed-off-by: Peter Xu <[email protected]> --- hw/i386/intel_iommu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
