Fix warning: cast between incompatible function types from 'void (*)(void *)' to 'msg_t (*)(void *)'

This commit is contained in:
GullCode 2021-01-27 15:32:46 +01:00
parent 19ebf14e8c
commit 6c2950cfe8

View File

@ -119,7 +119,7 @@ void chSysInit(void) {
serve interrupts in its context while keeping the lowest energy saving
mode compatible with the system status.*/
chThdCreateStatic(_idle_thread_wa, sizeof(_idle_thread_wa), IDLEPRIO,
(tfunc_t)_idle_thread, NULL);
(void *)_idle_thread, NULL);
#endif
}