qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH v3 09/16] semihosting: Clean up global variable shadowing


From: Thomas Huth
Subject: Re: [PATCH v3 09/16] semihosting: Clean up global variable shadowing
Date: Wed, 4 Oct 2023 14:33:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

On 04/10/2023 14.16, Alex Bennée wrote:

Philippe Mathieu-Daudé <philmd@linaro.org> writes:

Fix:

   semihosting/config.c:134:49: error: declaration shadows a variable in the 
global scope [-Werror,-Wshadow]
   int qemu_semihosting_config_options(const char *optarg)
                                                   ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/getopt.h:77:14: 
note: previous declaration is here
   extern char *optarg;                    /* getopt(3) external
   variables */

I'm going to assume the getopt.h is somehow swept up by osdep.h?

Anyway:

Acked-by: Alex Bennée <alex.bennee@linaro.org>

Could we maybe rather remove getopt.h from osdep.h instead of renaming this everywhere? getopt.h should only be required by some few files, so including this in osdep.h seems exaggerated, IMHO.

 Thomas




reply via email to

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