diff --git a/firmware/application/Makefile b/firmware/application/Makefile index 6282162..3bab746 100644 --- a/firmware/application/Makefile +++ b/firmware/application/Makefile @@ -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) \ No newline at end of file + java -jar $(CMSIS_CONFIG_TOOL) $(SDK_CONFIG_FILE) diff --git a/firmware/bootloader/Makefile b/firmware/bootloader/Makefile index 4a4fa50..60c2a33 100644 --- a/firmware/bootloader/Makefile +++ b/firmware/bootloader/Makefile @@ -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)