Re: [PATCH] Extend -Wint-in-bool-context to more conditional expressions

2016-10-05 Thread Jeff Law
On 10/03/2016 11:09 AM, Bernd Edlinger wrote: Hi! This is a next step in extending the -Wint-in-bool-context warning to cover the case when a conditional expression has only one arm which evaluates to a non-boolean integer value. With a previous version of this warning, we found PR 77574, among

[PATCH] Extend -Wint-in-bool-context to more conditional expressions

2016-10-03 Thread Bernd Edlinger
Hi! This is a next step in extending the -Wint-in-bool-context warning to cover the case when a conditional expression has only one arm which evaluates to a non-boolean integer value. With a previous version of this warning, we found PR 77574, among with several more or less false positives, but