From: Philippe Mathieu-Daudé Date: Mon, 4 Sep 2023 16:12:33 +0000 (+0200) Subject: softmmu/memory: Clean up local variable shadowing X-Git-Tag: v8.2.0-rc0~96^2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=083f450f659c0d34766d80a99878d2a1e5f8f495;p=thirdparty%2Fqemu.git softmmu/memory: Clean up local variable shadowing Fix: softmmu/memory.c: In function ‘mtree_print_mr’: softmmu/memory.c:3236:27: warning: declaration of ‘ml’ shadows a previous local [-Wshadow=compatible-local] 3236 | MemoryRegionList *ml; | ^~ softmmu/memory.c:3213:32: note: shadowed declaration is here 3213 | MemoryRegionList *new_ml, *ml, *next_ml; | ^~ Signed-off-by: Philippe Mathieu-Daudé Message-ID: <20230904161235.84651-22-philmd@linaro.org> Reviewed-by: Peter Xu Signed-off-by: Markus Armbruster --- diff --git a/softmmu/memory.c b/softmmu/memory.c index c0383a163d6..234bd7b1161 100644 --- a/softmmu/memory.c +++ b/softmmu/memory.c @@ -3245,7 +3245,6 @@ static void mtree_print_mr(const MemoryRegion *mr, unsigned int level, } if (mr->alias) { - MemoryRegionList *ml; bool found = false; /* check if the alias is already in the queue */