summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-10-31 11:00:34 +0900
committerTom Rini <trini@ti.com>2014-11-04 15:01:56 -0500
commit15cfa32a22a93112bd1bacea6f2ce6d01f91ff9c (patch)
treee48c8ad013b87bb081a6d366c72e773ddfe72411
parent7f7563cec11388451cd81c99abfa86836b1bdd75 (diff)
downloadu-boot-imx-15cfa32a22a93112bd1bacea6f2ce6d01f91ff9c.zip
u-boot-imx-15cfa32a22a93112bd1bacea6f2ce6d01f91ff9c.tar.gz
u-boot-imx-15cfa32a22a93112bd1bacea6f2ce6d01f91ff9c.tar.bz2
kbuild: do not hide clang warnings during build with W=1
These lines originate in Linux; it looks like Linux folks chose to hide bunch of warnings reported by clang rather than fixing C code. In U-boot, warnings are being fixed thanks to Jeroen's great efforts. Let's stop suppressing clang warnings. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
-rw-r--r--scripts/Makefile.extrawarn10
1 files changed, 0 insertions, 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