summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-20 23:04:43 -0800
committerKeith Packard <keithp@keithp.com>2013-12-20 23:04:43 -0800
commit9289200ccb661b10ff892760ecbc752c7745de6b (patch)
tree9f46f95fe90ba07a7b51a25aa743765f8430c3ed /src
parent16b37b49985daf21ebb93b3d6ae64af67533be22 (diff)
altos: Turn on -Werror for STM and LPC builds
Now that the build completes with no warnings, make future warnings into errors. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/lpc/Makefile-lpc.defs2
-rw-r--r--src/stm/Makefile.defs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lpc/Makefile-lpc.defs b/src/lpc/Makefile-lpc.defs
index b9687196..dd2bf0e6 100644
--- a/src/lpc/Makefile-lpc.defs
+++ b/src/lpc/Makefile-lpc.defs
@@ -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\
diff --git a/src/stm/Makefile.defs b/src/stm/Makefile.defs
index 1e31e590..42adfd09 100644
--- a/src/stm/Makefile.defs
+++ b/src/stm/Makefile.defs
@@ -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 \