From 57f7e90cfdb34ca901107d61ee7de16a93d5fc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Tue, 1 Aug 2017 19:13:56 +0200 Subject: [PATCH] bootloader: fix clang warning --- bootloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootloader.c b/bootloader.c index 6a90280..33edc31 100644 --- a/bootloader.c +++ b/bootloader.c @@ -74,7 +74,7 @@ void main(void) if (!dfu_force && (((*application)&0xFFFE0000)==0x20000000)) { // application at address seems valid SCB_VTOR = (volatile uint32_t)(application); // set vector table to application vector table (store at the beginning of the application) __asm__ volatile ("MSR msp,%0" : :"r"(*application)); // set stack pointer to address provided in the beginning of the application (loaded into a register first) - (*(void(**)())(application + 1))(); // start application (by jumping to the reset function which address is stored as second entry of the vector table) + (*(void(**)(void))(application + 1))(); // start application (by jumping to the reset function which address is stored as second entry of the vector table) } rcc_clock_setup_in_hse_8mhz_out_72mhz(); // start main clock