https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64610
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
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
$: