Skip to content

Commit e745002

Browse files
authored
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
2 parents 2e6c877 + 4f8c2af commit e745002

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ endif
342342
CFLAGS += -DDFU_APP_DATA_RESERVED=$(DFU_APP_DATA_RESERVED)
343343

344344
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
345-
ifneq ($(findstring 12.,$(shell $(CC) --version 2>/dev/null)),)
345+
# Fixes for gcc version 12 and 13.
346+
ifneq (,$(filter 12.% 13.%,$(shell $(CC) -dumpversion 2>/dev/null)))
346347
CFLAGS += --param=min-pagesize=0
347348
endif
348349

0 commit comments

Comments
 (0)