qemu-devel
[Top][All Lists]
Advanced

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

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


From: Thomas Huth
Subject: Re: [PATCH 4/5] linux-user/syscall.c: clean up local variable shadowing in TARGET_NR_getcpu
Date: Fri, 6 Oct 2023 13:07:21 +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/syscall.c: In function 'do_syscall1':
.../linux-user/syscall.c:11180:22: warning: declaration of 'cpu' shadows a 
previous local [-Wshadow=local]
11180 |             unsigned cpu, node;
       |                      ^~~
.../linux-user/syscall.c:8963:15: note: shadowed declaration is here
  8963 |     CPUState *cpu = env_cpu(cpu_env);
       |               ^~~

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
  linux-user/syscall.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]