Skip to contentSkip to conversation

MIPS: Disable Werror when W= is set

PATCH Applied Florian Fainelli 2 participants 2 messages Mar 17, 2017 – Mar 21, 2017 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Disable Werror when W= is set

Using any value for W= will lead to a ton of warnings which are turned into fatal errors because MIPS adds -Werror to arch/mips/*.

---
 arch/mips/Kbuild | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/Kbuild +2 -0
index 5c3f688a5232..5cef58651db0 100644
@@ -1,7 +1,9 @@
 # Fail on warnings - also for files referenced in subdirs
 # -Werror can be disabled for specific files using:
 # CFLAGS_<file.o> := -Wno-error
+ifeq ($(W),)
 subdir-ccflags-y := -Werror
+endif
 
 # platform specific definitions
 include arch/mips/Kbuild.platforms
Signature · 1 line
2.9.3
Applied
#1 lore raw
Quoted 2 lines · Florian Fainelli

Using any value for W= will lead to a ton of warnings which are turned into fatal errors because MIPS adds -Werror to arch/mips/*.

Imho a fairly reasonable way of dealing with the complicatios of by -Werror.

Applied,

Ralf