[Bug c++/77434] warn about suspicious precedence of ternary operator (?:)

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 1 20:43:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77434

--- Comment #6 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Thu, 1 Sep 2016, bernd.edlinger at hotmail dot de wrote:

> +       warning_at (location, 0,
> +                   "?: expression using integer constants in boolean
> context");

This should of course be enabled by some -W option (new or existing, and 
enabled by -Wall in any case); warnings without an option to control them 
should be avoided.


More information about the Gcc-bugs mailing list