[Bug c/64610] No -Wbool-compare warning on "(0 != a) >= 0"

2015-04-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/64610] No -Wbool-compare warning on "(0 != a) >= 0"

2015-04-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Wed Apr 29 18:13:44 2015 New Revision: 222587 URL: https://gcc.gnu.org/viewcvs?rev=222587&root=gcc&view=rev Log: PR c/64610 * c-common.c (maybe_warn_bool_compare): Warn

[Bug c/64610] No -Wbool-compare warning on "(0 != a) >= 0"

2015-04-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c/64610] No -Wbool-compare warning on "(0 != a) >= 0"

2015-03-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/64610] No -Wbool-compare warning on "(0 != a) >= 0"

2015-01-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c/64610] No -Wbool-compare warning on "(0 != a) >= 0"

2015-01-15 Thread chengniansun at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610 --- Comment #1 from Chengnian Sun --- I have another test case, for which either -Wtype-limits or -Wbool-compare does not warn. $: cat s.c void f(int b) { (b == 1) >= 0UL; } $: $: gcc-trunk -Wtype-limits -Wbool-compare -c s.c $: