summaryrefslogtreecommitdiff
path: root/minimal
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 /minimal
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 'minimal')
-rw-r--r--minimal/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/minimal/Makefile b/minimal/Makefile
index 411751735..42c2d5312 100644
--- a/minimal/Makefile
+++ b/minimal/Makefile
@@ -22,9 +22,9 @@ ifeq ($(CROSS), 1)
DFU = ../tools/dfu.py
PYDFU = ../tools/pydfu.py
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
-CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
+CFLAGS = $(INC) -Wall -Werror -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
else
-CFLAGS = -m32 $(INC) -Wall -Werror -ansi -std=gnu99 $(COPT)
+CFLAGS = -m32 $(INC) -Wall -Werror -std=gnu99 $(COPT)
endif
#Debugging/Optimization