Skip to content

Commit a48e944

Browse files
authored
Merge pull request #353 from andreaskurz/askz/fix-array-subscript
fix: array subscript 0 outside array bounds
2 parents 4329614 + c83fa9f commit a48e944

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ endif
336336
CFLAGS += -DDFU_APP_DATA_RESERVED=$(DFU_APP_DATA_RESERVED)
337337

338338
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
339-
# Fixes for gcc version 12 and 13.
340-
ifneq (,$(filter 12.% 13.%,$(shell $(CC) -dumpversion 2>/dev/null)))
339+
# Fixes for gcc version 12, 13 and 14.
340+
ifneq (,$(filter 12.% 13.% 14.%,$(shell $(CC) -dumpversion 2>/dev/null)))
341341
CFLAGS += --param=min-pagesize=0
342342
endif
343343

@@ -500,7 +500,7 @@ dfu-flash: flash-dfu
500500
flash-dfu: $(BUILD)/$(MERGED_FILE).zip
501501
@:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyACM0)
502502
$(NRFUTIL) --verbose dfu serial --package $< -p $(SERIAL) -b 115200 --singlebank --touch 1200
503-
503+
504504
# flash skip crc magic ( app valid = 0x0001, crc = 0x0000 )
505505
#flash-skip-crc:
506506
# nrfjprog --memwr $(BOOT_SETTING_ADDR) --val 0x00000001 -f nrf52

0 commit comments

Comments
 (0)