From 345d0a8a7924b1eae23715f15712fd42ad6b6161 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 8 Jan 2008 08:01:01 +0000 Subject: [PATCH] Added a WERROR definition that can be used to turn -Werror on --- cpu/msp430/Makefile.msp430 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cpu/msp430/Makefile.msp430 b/cpu/msp430/Makefile.msp430 index 0cb57b626..fe49d6eda 100644 --- a/cpu/msp430/Makefile.msp430 +++ b/cpu/msp430/Makefile.msp430 @@ -1,4 +1,4 @@ -# $Id: Makefile.msp430,v 1.21 2007/11/26 23:23:20 adamdunkels Exp $ +# $Id: Makefile.msp430,v 1.22 2008/01/08 08:01:01 adamdunkels Exp $ ifdef nodeid CFLAGS += -DNODEID=$(nodeid) @@ -39,7 +39,10 @@ NM = msp430-nm OBJCOPY = msp430-objcopy STRIP = msp430-strip BSL = msp430-bsl -CFLAGSNO = -Wall -mmcu=$(MCU) -g #-Werror +ifdef WERROR +CFLAGSWERROR=-Werror +endif +CFLAGSNO = -Wall -mmcu=$(MCU) -g $(CFLAGSWERROR) CFLAGS += $(CFLAGSNO) -Os LDFLAGS += -mmcu=$(MCU) -Wl,-Map=contiki-$(TARGET).map