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/32102] -Wall stomps on -Wstrict-overflow



------- Comment #10 from ian at airs dot com  2008-01-21 20:40 -------
This test case will give a warning with mainline with -Wstrict-overflow (aka
-Wstrict-overflow=2) but not with -Wall (which implies -Wstrict-overflow=1).

void Alpha();

void Beta() {
  int i;
  for (i = 1; i > 0; i += i)
    Alpha();
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32102


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