altos: Turn on -Wall for stm compiles
[fw/altos] / src / stm / Makefile.defs
index 9adcfeb3c2bb76fc3969986a6ce3bf33171c8640..d0e5a6995462ebe798fd9559ae0ba87ea21bebf4 100644 (file)
@@ -24,8 +24,11 @@ include $(TOPDIR)/Makedefs
 CC=$(ARM_CC)
 LIBS=$(PDCLIB_LIBS_M3) -lgcc
 
+WARN_FLAGS=-Wall
+
 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