qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH v3 01/16] hw/audio/soundhw: Clean up global variable shadowin


From: Thomas Huth
Subject: Re: [PATCH v3 01/16] hw/audio/soundhw: Clean up global variable shadowing
Date: Fri, 6 Oct 2023 11:27:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

On 04/10/2023 14.00, Philippe Mathieu-Daudé wrote:
Fix:

   hw/audio/soundhw.c:86:33: error: declaration shadows a variable in the 
global scope [-Werror,-Wshadow]
   void select_soundhw(const char *optarg, const char *audiodev)
                                   ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/getopt.h:77:14: 
note: previous declaration is here
   extern char *optarg;                    /* getopt(3) external variables */
                ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  include/hw/audio/soundhw.h | 2 +-
  hw/audio/soundhw.c         | 6 +++---
  2 files changed, 4 insertions(+), 4 deletions(-)

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




reply via email to

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