Merge pull request #276 from GullCode/chibios_warning_fix

Fix warning: cast between incompatible function types
This commit is contained in:
Erwin Ried 2021-02-16 09:12:22 +01:00 committed by GitHub
commit eca25898f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}