This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/2699] gcc does not warn of dead code
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 May 2003 15:31:43 -0000
- Subject: [Bug c/2699] gcc does not warn of dead code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2699
------- Additional Comments From pinskia@physics.uc.edu 2003-05-25 15:31 -------
With -O1 and -Wunreachable-code, the mainline warns about unreachable code, -
Wunreachable-code is not turned on with -Wall because if you inline a function, there
can be some unreachable. In C++ with templates can cause unreachable code.
Also I think 3.3 does not warn.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.