qemu-arm
[Top][All Lists]
Advanced

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

Re: [PATCH 06/10] tests/rtl8139: Clean up global variable shadowing


From: Thomas Huth
Subject: Re: [PATCH 06/10] tests/rtl8139: Clean up global variable shadowing
Date: Fri, 13 Oct 2023 08:14:42 +0200
User-agent: Mozilla Thunderbird

On 09/10/2023 12.02, Philippe Mathieu-Daudé wrote:
Rename the variable to fix:

   tests/qtest/rtl8139-test.c:28:33: error: declaration shadows a variable in 
the global scope [-Werror,-Wshadow]
   static void save_fn(QPCIDevice *dev, int devfn, void *data)
                                   ^
   tests/qtest/rtl8139-test.c:37:17: error: declaration shadows a variable in 
the global scope [-Werror,-Wshadow]
       QPCIDevice *dev;
                   ^
   tests/qtest/rtl8139-test.c:25:20: note: previous declaration is here
   static QPCIDevice *dev;
                      ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  tests/qtest/rtl8139-test.c | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)

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




reply via email to

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