Sigh, looks like one of my common idioms:
if (int_value) { ... }
Will now be warned/failed. if (int_value) { ... }
Will now be warned/failed. -Wint-in-bool-context
Warn for suspicious use of integer values where boolean values are expected, such as conditional expressions (?:) using non-boolean integer constants in boolean context, like if (a <= b ? 2 : 3)
Or left shifting of signed integers in boolean context, like for (a = 0; 1 << a; a++);
Likewise for all kinds of multiplications regardless of the data type. This warning is enabled by `-Wall`.[1]: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
if (int_value != 0) { ... }
To be clear about what I mean.Per the examples in the documentation, it does trigger when you do something silly like "if (i < 3 ? 7 : 0)".
In fact if you read the documentation and the warning messages more closely, it's looking for suspicious use of integer constants, not integer variables.