fix build warnings

This commit is contained in:
lixianjing 2024-08-09 10:32:00 +08:00
parent bd7a2d0aaa
commit cf5e93980e
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
2024/08/9
* 增加 goto_error_if_fail_ex(感谢兆坤提供补丁)
* 修复编译警告 main_loop_console(感谢兆坤提供补丁)
2024/08/8
* 修复stm32工程编译问题。

View File

@ -155,7 +155,7 @@ main_loop_console_t* main_loop_console_init(void) {
loop->base.run = main_loop_console_run;
loop->base.step = main_loop_console_step;
loop->base.destroy = (main_loop_destroy_t*)main_loop_console_reset;
loop->base.destroy = (main_loop_destroy_t)main_loop_console_reset;
loop->mutex = tk_mutex_create();
return_value_if_fail(loop->mutex != NULL, NULL);