On Fri, Jan 20, 2017 at 05:14:34PM +0100, Marek Polacek wrote:
> We already have code to handle
> 
>   case 0:
>     foo ();
>   label:
>     bar ();
> 
> where we don't want to warn, but the code didn't handle consecutive non-case
> labels.  Thus fixed.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
> 
> 2017-01-20  Marek Polacek  <pola...@redhat.com>
> 
>       PR c/79152
>       * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
>       non-case labels.
> 
>       * c-c++-common/Wimplicit-fallthrough-35.c: New test.

Ok, thanks.

        Jakub

Reply via email to