diff options
| author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-12 03:01:57 -0600 |
|---|---|---|
| committer | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-12 03:01:57 -0600 |
| commit | 09b39705b81484347c7561a5528e08b2a70e67a6 (patch) | |
| tree | a72cf1fd11400ae3fc57e0e54699af714bb33de8 | |
| parent | f8394f232b1eab649ce2df5c5f15b0e528c92091 (diff) | |
| download | linux-09b39705b81484347c7561a5528e08b2a70e67a6.tar.gz | |
Revert "kbuild: Do not enable -Wimplicit-fallthrough for clang for now"
This reverts commit e2079e93f562c7f7a030eb7642017ee5eabaaa10.
| -rw-r--r-- | Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile index 008aba5f1a20f..29a8ca560c34d 100644 --- a/Makefile +++ b/Makefile @@ -779,11 +779,6 @@ else # These warnings generated too much noise in a regular build. # Use make W=1 to enable them (see scripts/Makefile.extrawarn) KBUILD_CFLAGS += -Wno-unused-but-set-variable - -# Warn about unmarked fall-throughs in switch statement. -# Disabled for clang while comment to attribute conversion happens and -# https://github.com/ClangBuiltLinux/linux/issues/636 is discussed. -KBUILD_CFLAGS += $(call cc-option,-Wimplicit-fallthrough,) endif KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) @@ -907,6 +902,9 @@ NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) # warn about C99 declaration after statement KBUILD_CFLAGS += -Wdeclaration-after-statement +# Warn about unmarked fall-throughs in switch statement. +KBUILD_CFLAGS += $(call cc-option,-Wimplicit-fallthrough,) + # Variable Length Arrays (VLAs) should not be used anywhere in the kernel KBUILD_CFLAGS += -Wvla |
