This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32102] -Wall stomps on -Wstrict-overflow
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2008 20:40:33 -0000
- Subject: [Bug c/32102] -Wall stomps on -Wstrict-overflow
- References: <bug-32102-11211@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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