mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user