f4discovery: Fix error with GCC9 being more picky with sizes.

This commit is contained in:
Uwe Bonnes 2019-12-05 12:21:02 +01:00 committed by UweBonnes
parent 8a07f44435
commit f10ccfd83e
1 changed files with 2 additions and 2 deletions

View File

@ -38,11 +38,11 @@
#include <libopencm3/cm3/cortex.h>
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) ||