This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25314] [3.4/4.0/4.1/4.2 Regression] Unreachable code at beginning of switch statement is not reported anymore
- From: "Uwe dot Seimet at seimet dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2005 18:37:03 -0000
- Subject: [Bug c/25314] [3.4/4.0/4.1/4.2 Regression] Unreachable code at beginning of switch statement is not reported anymore
- References: <bug-25314-7407@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from Uwe dot Seimet at seimet dot de 2005-12-08 18:37 -------
Subject: Re: [3.4/4.0/4.1/4.2 Regression] Unreachable code at beginning of
switch statement is not reported anymore
Hello,
> Hmm, someone else has to do decide if we only want to warn about this with
> -Wunreachable-code or with just -W -Wall because 3.4.0 and above only warn with
> -Wunreachable-code.
Thank you for your quick response! It was not obvious for me that
-Wunreachable-code would enable the correct warning, since in previous
versions this warning was covered by -Wall.
It would be nice for -Wall to include -Wunreachable-code, similar to how
it was in gcc 3.3.
Best regards, Uwe
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25314