c/7652: -Wswitch-break : Warn if a switch case falls through
bangerth@dealii.org
bangerth@dealii.org
Wed Nov 27 08:07:00 GMT 2002
Synopsis: -Wswitch-break : Warn if a switch case falls through
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Nov 27 07:21:03 2002
State-Changed-Why:
I doubt warning if a switch case falls through is a useful
feature since it is so commonly used in a reasonable way.
Note that if you write
case 1: case 2:
you are actually using this, since the "case 1" simply falls
through to the "case 2"...
But I leave it to others to judge whether this would be
useful.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7652
More information about the Gcc-bugs
mailing list