Disabling errors but keeping warnings

Mason slash.tmp@free.fr
Fri Apr 28 03:06:00 GMT 2017


On 26/04/2017 23:46, Jakub Jelinek wrote:
> On Wed, Apr 26, 2017 at 11:43:57PM +0200, Mason wrote:
>> + Jakub, Martin, Joseph
>>
>> Is it supposed to be possible to downgrade an unrecognized option
>> from error to warning?
>>
>> What I would like is being able to pass
>> -Wall -Werror -Wno-error=misleading-indentation
>> to any version of gcc.
> 
> Even when we change it now, we don't have a time machine, so all past
> versions would still reject it.

You're right, of course. I was thinking that such a feature could
be back-ported to 5.x, 6.x, 7.x so that, in 3-5 years, when 5.x
is considered "ancient", people can safely use the feature.

Regards.



More information about the Gcc-help mailing list