From 1cecd593c81e1dca225919614b6f3f8f3f1d4bf7 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Tue, 20 Apr 2021 18:51:55 +0100 Subject: [PATCH] Fix for gcc10 teensy_lc eeprom build warning (#12587) --- tmk_core/common/chibios/eeprom_teensy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmk_core/common/chibios/eeprom_teensy.c b/tmk_core/common/chibios/eeprom_teensy.c index e135e19a2..4aaf66526 100644 --- a/tmk_core/common/chibios/eeprom_teensy.c +++ b/tmk_core/common/chibios/eeprom_teensy.c @@ -363,7 +363,7 @@ void eeprom_initialize(void) { return; } } while (p < (uint16_t *)SYMVAL(__eeprom_workarea_end__)); - flashend = (uint32_t)((uint16_t *)SYMVAL(__eeprom_workarea_end__) - 1); + flashend = (uint32_t)(p - 1); } uint8_t eeprom_read_byte(const uint8_t *addr) {