Thread (5 messages) 5 messages, 3 authors, 2020-11-24

Re: [PATCH][next] mwifiex: Fix fall-through warnings for Clang

From: Joe Perches <joe@perches.com>
Date: 2020-11-17 16:16:44
Also in: linux-hardening, linux-wireless, lkml

On Tue, 2020-11-17 at 10:09 -0600, Gustavo A. R. Silva wrote:
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of
letting the code fall through to the next case.
Thanks Gustavo.

I think this is better style than the gcc allowed
undescribed fallthrough to break;

gcc developers disagree though:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91432

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help