MIPS: Kbuild: remove -Werror
Subsystems (2)
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
@@ -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
Quoted 4 lines · Artem Bityutskiy
From: Artem Bityutskiy <[email protected]>
MIPS does not build with the standard W=1
Kbuildswitch 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