qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Thomas Huth
Subject: Re: [PATCH 2/5] linux-user/mmap.c: clean up local variable shadowing
Date: Fri, 6 Oct 2023 12:01:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

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;
       |             ^~~~
../../../Projects/qemu/linux-user/mmap.c:871:9: note: shadowed declaration is 
here
   871 |     int prot;
       |         ^~~~

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
  linux-user/mmap.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]