fix pointer casting warning

fixes following warning:
libboard/common/source/board_cstartup_gnu.c:137:11: warning: assignment to 'void (*)(void)' from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion]
  appReset = pSrc[1];
This commit is contained in:
Kévin Redon authored and Harald Welte committed 2018-06-29 20:07:31 +02:00
1 parent a38a126361
commit 76be7c806e
1 file changed
+1 -1
@@ -134,7 +134,7 @@ static void BootIntoApp(void)
pSrc = (unsigned int *) ((unsigned char *)IFLASH_ADDR + BOARD_DFU_BOOT_SIZE);
SCB->VTOR = ((unsigned int)(pSrc)) | (0x0 << 7);
appReset = pSrc[1];
appReset = (void(*)(void))pSrc[1];
g_dfu->state = DFU_STATE_appIDLE;