This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/7652] -Wswitch-break : Warn if a switch case falls through
- From: "eric at brouhaha dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Feb 2012 01:01:19 +0000
- Subject: [Bug c/7652] -Wswitch-break : Warn if a switch case falls through
- Auto-submitted: auto-generated
- References: <bug-7652-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652
Eric Smith <eric at brouhaha dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eric at brouhaha dot com
--- Comment #8 from Eric Smith <eric at brouhaha dot com> 2012-02-21 01:01:19 UTC ---
Actually, I would want this warning to occur for all non-empty cases that don't
end in a break or return. However, I'd also want some means (perhaps a pragma)
to put in the code to suppress the warning for any specific cases that I
actually intend to fall through to the next case.