Add c99 explicitly

This commit is contained in:
jxltom 2021-07-09 10:48:02 +08:00
parent ef937a446a
commit abeaf0380f
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ C_INCLUDES = \
# compile gcc flags
ASFLAGS = $(MCU) $(AS_DEFS) $(AS_INCLUDES) $(OPT) -Wall -fno-common -fdata-sections -ffunction-sections
CFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -Wpedantic -Wextra -fno-common -fdata-sections -ffunction-sections $(BOARD_FLAGS)
CFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -Wpedantic -Wextra -fno-common -fdata-sections -ffunction-sections -std=c99 $(BOARD_FLAGS)
ifeq ($(DEBUG), 1)
CFLAGS += -g -gdwarf-2