Fix compilation on latest compilator version (12)

CFLAGS -Wno-error
This commit is contained in:
Foxushka
2023-07-03 15:00:15 +08:00
committed by dxl
parent fb0a8564ab
commit 4a7cf188a1
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -309,6 +309,9 @@ CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
# keep every function in a separate section, this allows linker to discard unused ones
CFLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing
CFLAGS += -fno-builtin -fshort-enums
# fix newer compilator versions
CFLAGS += -Wno-error=array-bounds
CFLAGS += -Wno-error=sizeof-array-div
# C++ flags common to all targets
CXXFLAGS += $(OPT)
@@ -387,4 +390,4 @@ erase:
SDK_CONFIG_FILE := ./${PROJ_DIR}/sdk_config.h
CMSIS_CONFIG_TOOL := $(SDK_ROOT)/external_tools/cmsisconfig/CMSIS_Configuration_Wizard.jar
config:
java -jar $(CMSIS_CONFIG_TOOL) $(SDK_CONFIG_FILE)
java -jar $(CMSIS_CONFIG_TOOL) $(SDK_CONFIG_FILE)
+2
View File
@@ -197,6 +197,8 @@ CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
# keep every function in a separate section, this allows linker to discard unused ones
CFLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing
CFLAGS += -fno-builtin -fshort-enums
# fix newer compilator versions
CFLAGS += -Wno-error=array-bounds
# C++ flags common to all targets
CXXFLAGS += $(OPT)