Skip to content

Commit

Permalink
Merge pull request #321 from SaidAlvarado/fix-273-for-gcc-13
Browse files Browse the repository at this point in the history
fix compilation issue 'array subscript 0 is outside array bounds' for arm-none-eabi-gcc version 13
  • Loading branch information
hathach committed Feb 5, 2024
2 parents 2e6c877 + 4f8c2af commit e745002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e745002

Please sign in to comment.