Added more warning CFLAGS to all makefiles.

This commit is contained in:
Piotr Esden-Tempski
2013-02-26 16:42:20 -08:00
parent c51e01e0fe
commit b0233ae6fb
22 changed files with 110 additions and 22 deletions

View File

@@ -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 \