qemu-devel
[Top][All Lists]
Advanced

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

Re: Wshadow: Better name for 'optarg'?


From: Thomas Huth
Subject: Re: Wshadow: Better name for 'optarg'?
Date: Wed, 4 Oct 2023 19:35:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

On 04/10/2023 19.23, Richard Henderson wrote:
On 10/4/23 03:05, Philippe Mathieu-Daudé wrote:
Hi,

I'm getting a bunch of errors for 'optarg' declared in <unistd.h>:

I thought things like this is why we were trying -Wshadow=local.

I think it's unlikely that we'll be able to prevent all such cases.

Given the broad range of operating systems and libraries that we support in QEMU, I agree with Richard - it will likely be impossible to enable that option without =local by default without risking that compilation breaks on some exotic systems or new versions of various libraries.

 Thomas





reply via email to

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