[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 21/22] softmmu/memory: Clean up local variable shadowing
From: |
Peter Xu |
Subject: |
Re: [PATCH v2 21/22] softmmu/memory: Clean up local variable shadowing |
Date: |
Tue, 5 Sep 2023 11:46:59 -0400 |
On Mon, Sep 04, 2023 at 06:12:33PM +0200, Philippe Mathieu-Daudé wrote:
> 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>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
- Re: [PATCH v2 16/22] crypto/cipher-gnutls.c: Clean up local variable shadowing, (continued)
- [PATCH v2 17/22] util/vhost-user-server: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 18/22] semihosting/arm-compat: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 19/22] linux-user/strace: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 20/22] sysemu/device_tree: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 21/22] softmmu/memory: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- Re: [PATCH v2 21/22] softmmu/memory: Clean up local variable shadowing,
Peter Xu <=
- [RFC PATCH v2 22/22] softmmu/physmem: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- Re: [PATCH v2 00/22] (few more) Steps towards enabling -Wshadow, Markus Armbruster, 2023/09/29