From 6c2950cfe842dc603fa119678fcecac6cd46162e Mon Sep 17 00:00:00 2001 From: GullCode Date: Wed, 27 Jan 2021 15:32:46 +0100 Subject: [PATCH] Fix warning: cast between incompatible function types from 'void (*)(void *)' to 'msg_t (*)(void *)' --- firmware/chibios/os/kernel/src/chsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/chibios/os/kernel/src/chsys.c b/firmware/chibios/os/kernel/src/chsys.c index f26218d6..2bc3110a 100755 --- a/firmware/chibios/os/kernel/src/chsys.c +++ b/firmware/chibios/os/kernel/src/chsys.c @@ -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 }