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

@@ -23,7 +23,11 @@ PREFIX ?= arm-none-eabi
# PREFIX ?= arm-elf
CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
CFLAGS = -Os -g \
-Wall -Wextra -Wimplicit-function-declaration \
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
-Wundef -Wshadow \
-I../../../include -fno-common \
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
-ffunction-sections -fdata-sections -MD -DSTM32F2
# ARFLAGS = rcsv