diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-19 14:11:44 +0100 |
---|---|---|
committer | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-19 14:23:47 +0100 |
commit | 36f9ff9e03de89691274a6aec45aa079bd3ae405 (patch) | |
tree | 79c1e0a1bae6c0463276f4294c4440e0d8c6d78d /lib/kstrtox.c | |
parent | powerpc: fix -Wimplicit-fallthrough (diff) | |
download | linux-36f9ff9e03de89691274a6aec45aa079bd3ae405.tar.xz linux-36f9ff9e03de89691274a6aec45aa079bd3ae405.zip |
lib: Fix fall-through warnings for Clang
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, and by replacing a
number of /* fall through */ comments with the new pseudo-keyword
macro fallthrough.
Notice that Clang doesn't recognize /* Fall through */ comments as
implicit fall-through markings.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'lib/kstrtox.c')
-rw-r--r-- | lib/kstrtox.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/kstrtox.c b/lib/kstrtox.c index a14ccf905055..a118b0b1e9b2 100644 --- a/lib/kstrtox.c +++ b/lib/kstrtox.c @@ -355,6 +355,7 @@ int kstrtobool(const char *s, bool *res) default: break; } + break; default: break; } |