qemu-devel
[Top][All Lists]
Advanced

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

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


From: Thomas Huth
Subject: Re: [PATCH 3/5] linux-user/syscall.c: clean up local variable shadowing in do_ioctl_dm()
Date: Fri, 6 Oct 2023 13:05:04 +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_ioctl_dm':
.../linux-user/syscall.c:5053:23: warning: declaration of 'arg_type' shadows a 
previous local [-Wshadow=local]
  5053 |         const argtype arg_type[] = { MK_STRUCT(STRUCT_dm_target_spec) 
};
       |                       ^~~~~~~~
.../linux-user/syscall.c:4991:20: note: shadowed declaration is here
  4991 |     const argtype *arg_type = ie->arg_type;
       |                    ^~~~~~~~
...//linux-user/syscall.c:5102:27: warning: declaration of 'arg_type' shadows a 
previous local [-Wshadow=local]
  5102 |             const argtype arg_type[] = { 
MK_STRUCT(STRUCT_dm_name_list) };
       |                           ^~~~~~~~
.../linux-user/syscall.c:4991:20: note: shadowed declaration is here
  4991 |     const argtype *arg_type = ie->arg_type;
       |                    ^~~~~~~~
.../linux-user/syscall.c:5130:27: warning: declaration of 'arg_type' shadows a 
previous local [-Wshadow=local]
  5130 |             const argtype arg_type[] = { 
MK_STRUCT(STRUCT_dm_target_spec) };
       |                           ^~~~~~~~
.../linux-user/syscall.c:4991:20: note: shadowed declaration is here
  4991 |     const argtype *arg_type = ie->arg_type;
       |                    ^~~~~~~~
.../linux-user/syscall.c:5170:27: warning: declaration of 'arg_type' shadows a 
previous local [-Wshadow=local]
  5170 |             const argtype arg_type[] = { 
MK_STRUCT(STRUCT_dm_target_versions) };
       |                           ^~~~~~~~
.../linux-user/syscall.c:4991:20: note: shadowed declaration is here
  4991 |     const argtype *arg_type = ie->arg_type;
       |                    ^~~~~~~~

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

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




reply via email to

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