From f10ccfd83e0235b2e9159af2755efbc3d1872ae5 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Thu, 5 Dec 2019 12:21:02 +0100 Subject: [PATCH] f4discovery: Fix error with GCC9 being more picky with sizes. --- src/platforms/f4discovery/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/f4discovery/platform.c b/src/platforms/f4discovery/platform.c index 4703317..875c157 100644 --- a/src/platforms/f4discovery/platform.c +++ b/src/platforms/f4discovery/platform.c @@ -38,11 +38,11 @@ #include jmp_buf fatal_error_jmpbuf; -extern uint32_t _ebss; +extern char _ebss[]; void platform_init(void) { - volatile uint32_t *magic = (uint32_t *) &_ebss; + volatile uint32_t *magic = (uint32_t *)_ebss; /* Check the USER button*/ rcc_periph_clock_enable(RCC_GPIOA); if (gpio_get(GPIOA, GPIO0) ||