qemu-ppc
[Top][All Lists]
Advanced

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

Re: [PATCH] target/ppc: Clean up local variable shadowing in kvm_arch_*_


From: Thomas Huth
Subject: Re: [PATCH] target/ppc: Clean up local variable shadowing in kvm_arch_*_registers()
Date: Fri, 6 Oct 2023 11:55:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

On 06/10/2023 07.35, Cédric Le Goater wrote:
Remove extra 'i' variable to fix this warning :

   ../target/ppc/kvm.c: In function ‘kvm_arch_put_registers’:
   ../target/ppc/kvm.c:963:13: warning: declaration of ‘i’ shadows a previous 
local [-Wshadow=compatible-local]
     963 |         int i;
         |             ^
   ../target/ppc/kvm.c:906:9: note: shadowed declaration is here
     906 |     int i;
         |         ^
   ../target/ppc/kvm.c: In function ‘kvm_arch_get_registers’:
   ../target/ppc/kvm.c:1265:13: warning: declaration of ‘i’ shadows a previous 
local [-Wshadow=compatible-local]
    1265 |         int i;
         |             ^
   ../target/ppc/kvm.c:1212:9: note: shadowed declaration is here
    1212 |     int i, ret;
         |         ^

Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
  target/ppc/kvm.c | 4 ----
  1 file changed, 4 deletions(-)

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




reply via email to

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