altos: Turn on -Werror for STM and LPC builds
authorKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 07:04:43 +0000 (23:04 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 07:04:43 +0000 (23:04 -0800)
Now that the build completes with no warnings, make future warnings
into errors.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/Makefile-lpc.defs
src/stm/Makefile.defs

index b9687196c084dceb878777834b153ddc7086e039..dd2bf0e61610e759dc741e3d8e3219e9bb819696 100644 (file)
@@ -26,7 +26,7 @@ endif
 ELFTOHEX=$(TOPDIR)/../ao-tools/ao-elftohex/ao-elftohex
 CC=$(ARM_CC)
 
-WARN_FLAGS=-Wall -Wextra
+WARN_FLAGS=-Wall -Wextra -Werror
 
 AO_CFLAGS=-I. -I$(TOPDIR)/lpc -I$(TOPDIR)/core -I$(TOPDIR)/drivers -I$(TOPDIR)/product -I$(TOPDIR) $(PDCLIB_INCLUDES) 
 LPC_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m0 -mthumb\
index 1e31e5907fedf45a597ca637d49e9d72376d8b8b..42adfd0923b3ddc04f7ccab0d0a50e7756e7a850 100644 (file)
@@ -24,7 +24,7 @@ include $(TOPDIR)/Makedefs
 CC=$(ARM_CC)
 LIBS=$(PDCLIB_LIBS_M3) -lgcc
 
-WARN_FLAGS=-Wall -Wextra
+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 \