summaryrefslogtreecommitdiff
path: root/stmhal
diff options
context:
space:
mode:
authorKrzysztof Blazewicz <blazewicz.krzysztof@gmail.com>2017-03-05 13:28:27 +0100
committerDamien George <damien.p.george@gmail.com>2017-03-23 15:32:12 +1100
commit75589272ef12d538ab7ce4f4453be85d826b5083 (patch)
treee19b60155b124a325fe8776ca2321cfef00e691a /stmhal
parent4a4bb84e9216a130050a13e20a19fbf476ed6e6c (diff)
all/Makefile: Remove -ansi from GCC flags, its ignored anyway.
The -ansi flag is used for C dialect selection and it is equivalent to -std=c90. Because it goes right before -std=gnu99 it is ignored as for conflicting flags GCC always uses the last one.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile
index 76579d130..3eef6ffb2 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -56,7 +56,7 @@ CFLAGS_MCU_f4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 -DMCU_SERIES
CFLAGS_MCU_f7 = $(CFLAGS_CORTEX_M) -mtune=cortex-m7 -mcpu=cortex-m7 -DMCU_SERIES_F7
CFLAGS_MCU_l4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 -DMCU_SERIES_L4
-CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_MOD)
+CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -std=gnu99 -nostdlib $(CFLAGS_MOD)
CFLAGS += -D$(CMSIS_MCU)
CFLAGS += $(CFLAGS_MCU_$(MCU_SERIES))
CFLAGS += $(COPT)