Wishlish: GCC option for explicit booleans

Mike Stump mrs@apple.com
Mon Oct 3 17:47:00 GMT 2005


On Oct 2, 2005, at 5:27 PM, Nicholas Nethercote wrote:
> [~] g++ -Wall a.cpp
> a.cpp: In function `int main()':
> a.cpp:4: warning: suggest parentheses around assignment used as  
> truth value

And -Werror turns it into a hard error...



More information about the Gcc mailing list