[PATCH, updated] Add a warning for suspicious use of conditional expressions in boolean context

Bernd Edlinger bernd.edlinger@hotmail.de
Thu Sep 15 16:20:00 GMT 2016


On 09/15/16 17:44, Jeff Law wrote:
> On 09/14/2016 12:11 PM, Jason Merrill wrote:
>>
>> I think we could have both, where the weaker form is part of -Wall and
>> people can explicitly select the stronger form.
> That's been a fairly standard way to handle this kind of thing.  It
> works for me.
>
> Jeff

The warning could for instance be more aggressive when -pedantic is in
effect?


Bernd.


More information about the Gcc-patches mailing list