Added -Werror to turn compiler warnings into errors to ensure that code always compile without warnings

This commit is contained in:
adamdunkels 2007-11-17 10:11:58 +00:00
parent a7102829e3
commit 22cb35e9f6

View file

@ -1,4 +1,4 @@
# $Id: Makefile.msp430,v 1.19 2007/11/06 20:35:42 adamdunkels Exp $
# $Id: Makefile.msp430,v 1.20 2007/11/17 10:11:58 adamdunkels Exp $
ifdef nodeid
CFLAGS += -DNODEID=$(nodeid)
@ -39,7 +39,7 @@ NM = msp430-nm
OBJCOPY = msp430-objcopy
STRIP = msp430-strip
BSL = msp430-bsl
CFLAGSNO = -Wall -mmcu=$(MCU) -g
CFLAGSNO = -Wall -Werror -mmcu=$(MCU) -g
CFLAGS += $(CFLAGSNO) -Os
LDFLAGS += -mmcu=$(MCU) -Wl,-Map=contiki-$(TARGET).map