]> git.baikalelectronics.ru Git - kernel.git/commit
Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang
authorJoe Perches <joe@perches.com>
Mon, 5 Aug 2019 22:11:15 +0000 (15:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 10 Aug 2019 19:45:37 +0000 (12:45 -0700)
commit45b4b9b0e0ab38b09a7ec0d937f3bcfc287a4128
treebab86bd5b27f5b476bda19a7d36240fb328781a9
parentb354284ef06958e7e9cd78616682400413340cfb
Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang

A compilation -Wimplicit-fallthrough warning was enabled by commit
9efd3326fae8 ("Makefile: Globally enable fall-through warning")

Even though clang 10.0.0 does not currently support this warning without
a patch, clang currently does not support a value for this option.

Link: https://bugs.llvm.org/show_bug.cgi?id=39382
The gcc default for this warning is 3 so removing the =3 has no effect
for gcc and enables the warning for patched versions of clang.

Also remove the =3 from an existing use in a parisc Makefile:
arch/parisc/math-emu/Makefile

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-and-tested-by: Nathan Chancellor <natechancellor@gmail.com>
Cc: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Makefile
arch/parisc/math-emu/Makefile