Skip to contentSkip to conversation

MIPS: Kbuild: remove -Werror

PATCH In review Artem Bityutskiy 1 participant 2 messages Mar 9, 2012 – Mar 21, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Kbuild: remove -Werror

From: Artem Bityutskiy <[email protected]>

MIPS does not build with the standard W=1 Kbuild switch with - tested with gcc-4.6 by me and gcc-4.5 by John Crispin. The reason is that MIPS adds -Werror build option.

This patch removes the option to make W=1 work. I do compile-tests for various architecture before accepting MTD patches and I have scripts which build before applying the patch, then after, and then compare 2 build logs and report about new warnings. I use W=1 to see more warnings in the logs diff. And from my perspective all platforms should build with W=1.

The other way would be to fix all warnings, but there are false positives, and it is too difficult to maintain the code warning-free, so it is easier to just remove -Werror.

---
 arch/mips/Kbuild |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
arch/mips/Kbuild +0 -5
index 7dd65cf..0d37730 100644
@@ -1,8 +1,3 @@
-# Fail on warnings - also for files referenced in subdirs
-# -Werror can be disabled for specific files using:
-# CFLAGS_<file.o> := -Wno-error
-subdir-ccflags-y := -Werror
-
 # platform specific definitions
 include arch/mips/Kbuild.platforms
 obj-y := $(platform-y)
Signature · 1 line
1.7.9.1
#1 lore raw
Quoted 4 lines · Artem Bityutskiy

From: Artem Bityutskiy <[email protected]>

MIPS does not build with the standard W=1 Kbuild switch with - tested with gcc-4.6 by me and gcc-4.5 by John Crispin. The reason is that MIPS adds

Hi Ralf,

what's the fate of this patch?

Signature · 2 lines
Best Regards,
Artem Bityutskiy