aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/l1
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/l1')
-rw-r--r--examples/stm32/l1/Makefile.include6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/stm32/l1/Makefile.include b/examples/stm32/l1/Makefile.include
index 57b7030..e65cdb5 100644
--- a/examples/stm32/l1/Makefile.include
+++ b/examples/stm32/l1/Makefile.include
@@ -38,7 +38,11 @@ endif
endif
ARCH_FLAGS = -mthumb -mcpu=cortex-m3 -msoft-float
-CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
+CFLAGS += -Os -g \
+ -Wall -Wextra -Wimplicit-function-declaration \
+ -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
+ -Wundef -Wshadow \
+ -I$(TOOLCHAIN_DIR)/include \
-fno-common $(ARCH_FLAGS) -MD -DSTM32L1
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += --static -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group \