altos: Turn on -Werror for STM and LPC builds
[fw/altos] / src / stm / Makefile.defs
index 9adcfeb3c2bb76fc3969986a6ce3bf33171c8640..42adfd0923b3ddc04f7ccab0d0a50e7756e7a850 100644 (file)
@@ -24,8 +24,11 @@ include $(TOPDIR)/Makedefs
 CC=$(ARM_CC)
 LIBS=$(PDCLIB_LIBS_M3) -lgcc
 
+WARN_FLAGS=-Wall -Wextra -Werror
+
 AO_CFLAGS=-I. -I../stm -I../core -I../drivers -I../math -I.. $(PDCLIB_INCLUDES)
-STM_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m3 -mthumb -ffreestanding -nostdlib $(AO_CFLAGS)
+STM_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m3 -mthumb \
+       -ffreestanding -nostdlib $(AO_CFLAGS) $(WARN_FLAGS)
 
 LDFLAGS=-L../stm -Wl,-Taltos.ld