Re: [PATCH 2/5] linux-user/mmap.c: clean up local variable shadowing

2023-10-06 Thread Thomas Huth
On 25/09/2023 17.10, Laurent Vivier wrote: Fix following warnings: .../linux-user/mmap.c: In function 'target_mremap': .../linux-user/mmap.c:913:13: warning: declaration of 'prot' shadows a previous local [-Wshadow=compatible-local] 913 | int prot = 0; | ^~~~ ../..

[PATCH 2/5] linux-user/mmap.c: clean up local variable shadowing

2023-09-25 Thread Laurent Vivier
Fix following warnings: .../linux-user/mmap.c: In function 'target_mremap': .../linux-user/mmap.c:913:13: warning: declaration of 'prot' shadows a previous local [-Wshadow=compatible-local] 913 | int prot = 0; | ^~~~ ../../../Projects/qemu/linux-user/mmap.c:871:9: note