aboutsummaryrefslogtreecommitdiff
path: root/ports/teensy/Makefile
diff options
context:
space:
mode:
authorDamien George2020-12-18 13:48:26 +1100
committerDamien George2020-12-18 13:48:57 +1100
commit505a1853b9490246fbb95850ad8dae6d1b49d002 (patch)
tree9c02da7e68174c3574c839fc29b427fb1db57f27 /ports/teensy/Makefile
parente715a8fb9bf9c572b805aca4682048183c6eb97c (diff)
teensy: Fix build errors and warnings and enable -Werror.
Changes are: - Remove include of stm32's adc.h because it was recently changed and is no longer compatible with teensy (and not used anyway). - Remove define of __disable_irq in mpconfigport.h because it was clashing with an equivalent definition in core/mk20dx128.h. - Add -Werror to CFLAGS, and change -std=gnu99 to -std=c99. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/teensy/Makefile')
-rw-r--r--ports/teensy/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/teensy/Makefile b/ports/teensy/Makefile
index f2623eabd..d3978718e 100644
--- a/ports/teensy/Makefile
+++ b/ports/teensy/Makefile
@@ -38,7 +38,7 @@ INC += -I$(TOP)/ports/stm32
INC += -I$(BUILD)
INC += -Icore
-CFLAGS = $(INC) -Wall -Wpointer-arith -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4)
+CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -std=c99 -nostdlib $(CFLAGS_CORTEX_M4)
LDFLAGS = -nostdlib -T mk20dx256.ld -msoft-float -mfloat-abi=soft
ifeq ($(USE_ARDUINO_TOOLCHAIN),1)