[PATCH 3/3] powerpc: fix -Wimplicit-fallthrough

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Mon Nov 16 22:33:00 AEDT 2020


On Mon, Nov 16, 2020 at 5:35 AM Nick Desaulniers
<ndesaulniers at google.com> wrote:
>
> The "fallthrough" pseudo-keyword was added as a portable way to denote
> intentional fallthrough. Clang will still warn on cases where there is a
> fallthrough to an immediate break. Add explicit breaks for those cases.
>
> Link: https://github.com/ClangBuiltLinux/linux/issues/236
> Signed-off-by: Nick Desaulniers <ndesaulniers at google.com>

It makes things clearer having a `break` added, so I like that warning.

Reviewed-by: Miguel Ojeda <ojeda at kernel.org>

Cheers,
Miguel


More information about the Linuxppc-dev mailing list