This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #1 from Chengnian Sun <chengniansun at gmail dot com> ---
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
$:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]