Alex Bennée <alex.ben...@linaro.org> writes: > Philippe Mathieu-Daudé <phi...@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?
It comes from unitstd.h via osdep.h. getopt.h provides getopt_long() & friends. > > Anyway: > > Acked-by: Alex Bennée <alex.ben...@linaro.org>