Merge pull request #321 from SaidAlvarado/fix-273-for-gcc-13

fix compilation issue 'array subscript 0 is outside array bounds' for arm-none-eabi-gcc version 13
This commit is contained in:
Ha Thach
2024-02-05 10:12:06 +07:00
committed by GitHub

View File

@@ -342,7 +342,8 @@ endif
CFLAGS += -DDFU_APP_DATA_RESERVED=$(DFU_APP_DATA_RESERVED)
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
ifneq ($(findstring 12.,$(shell $(CC) --version 2>/dev/null)),)
# Fixes for gcc version 12 and 13.
ifneq (,$(filter 12.% 13.%,$(shell $(CC) -dumpversion 2>/dev/null)))
CFLAGS += --param=min-pagesize=0
endif