This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/77955] -Wimplicit-fallthrough=1 issue
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Oct 2016 13:56:24 +0000
- Subject: [Bug c/77955] -Wimplicit-fallthrough=1 issue
- Auto-submitted: auto-generated
- References: <bug-77955-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77955
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #1)
> (In reply to Markus Trippelsdorf from comment #0)
> > As you can see gcc issues a bogus warning and doesn't warn for the case 2
> > fallthrough.
>
> It falls through to default: break; so it should warn for that case.
Yes, that is what I meant to say.