aboutsummaryrefslogtreecommitdiff
path: root/softmmu/memory.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-09-04 18:12:33 +0200
committerMarkus Armbruster <armbru@redhat.com>2023-09-29 10:07:16 +0200
commit083f450f659c0d34766d80a99878d2a1e5f8f495 (patch)
tree92f746ca22614e7ca949bab6c9b2b5aab7f4f391 /softmmu/memory.c
parent720d6bcdbb9fd6781025f245c8d02ce179a2fc86 (diff)
downloadqemu-083f450f659c0d34766d80a99878d2a1e5f8f495.zip
qemu-083f450f659c0d34766d80a99878d2a1e5f8f495.tar.gz
qemu-083f450f659c0d34766d80a99878d2a1e5f8f495.tar.bz2
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é <philmd@linaro.org> Message-ID: <20230904161235.84651-22-philmd@linaro.org> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'softmmu/memory.c')
-rw-r--r--softmmu/memory.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/softmmu/memory.c b/softmmu/memory.c
index c0383a1..234bd7b 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 */