kbuild: do not hide clang warnings during build with W=1
PATCH v2 1/1 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 <[email protected]>
Cc Jeroen Hofstee <[email protected]>
---
Changes in v2:
- Rephrase commit summary and description for clarification
scripts/Makefile.extrawarn | 10 ---------- 1 file changed, 10 deletions(-)
scripts/Makefile.extrawarn +0 -10
@@ -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
Signature · 1 line
1.9.1
PATCH v2 1/1 kbuild: do not hide clang warnings during build with W=1
Quoted 8 lines · Masahiro Yamada
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 <[email protected]>Cc Jeroen Hofstee <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141104/a528c1a3/attachment.pgp>