History

kbuild: drop -Wno-unknown-warning-option from clang options

Since commit c3f0d0bc5b01 ("kbuild, LLVMLinux: Add -Werror to cc-option to support clang"), cc-option and friends work nicely for clang. However, -Wno-unknown-warning-option makes clang happy with any unknown warning options even if -Werror is specified. Once -Wno-unknown-warning-option is added, any succeeding call of cc-disable-warning is evaluated positive, then unknown warning options are accepted. This should be dropped.

Masahiro Yamada committed 9 years ago

Commit a0ae9811 parent cf0c3e62 files · +0 −2Browse files

Showing the changes to scripts (1 of 2 files). Show all

Unified · Split

scripts/Makefile.extrawarn+0−1
@@ -64,7 +64,6 @@ ifeq ($(cc-name),clang) · 63 unmodified lines
6464 KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides)
6565 KBUILD_CFLAGS += $(call cc-disable-warning, unused-value)
6666 KBUILD_CFLAGS += $(call cc-disable-warning, format)
67−KBUILD_CFLAGS += $(call cc-disable-warning, unknown-warning-option)
6867 KBUILD_CFLAGS += $(call cc-disable-warning, sign-compare)
6968 KBUILD_CFLAGS += $(call cc-disable-warning, format-zero-length)
7069 KBUILD_CFLAGS += $(call cc-disable-warning, uninitialized)