[U-Boot] [PATCH] kbuild: drop clang-specific extra warnings
Masahiro Yamada
yamada.m at jp.panasonic.com
Thu Oct 30 02:57:49 CET 2014
It is true clang has more warnings enabled by default but
Jeroen Hofstee are making lots of efforts to eliminate warnings.
Let's drop clang-related checks and continue to fix C code.
Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
Cc: Jeroen Hofstee <jeroen at myspectrum.nl>
---
scripts/Makefile.extrawarn | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index 6564350..0ec0d24 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -26,16 +26,6 @@ warning-1 += $(call cc-option, -Wmissing-include-dirs)
warning-1 += $(call cc-option, -Wunused-but-set-variable)
warning-1 += $(call cc-disable-warning, missing-field-initializers)
-# Clang
-warning-1 += $(call cc-disable-warning, initializer-overrides)
-warning-1 += $(call cc-disable-warning, unused-value)
-warning-1 += $(call cc-disable-warning, format)
-warning-1 += $(call cc-disable-warning, unknown-warning-option)
-warning-1 += $(call cc-disable-warning, sign-compare)
-warning-1 += $(call cc-disable-warning, format-zero-length)
-warning-1 += $(call cc-disable-warning, uninitialized)
-warning-1 += $(call cc-option, -fcatch-undefined-behavior)
-
warning-2 := -Waggregate-return
warning-2 += -Wcast-align
warning-2 += -Wdisabled-optimization
--
1.9.1
More information about the U-Boot
mailing list