diff --git a/src/base/idle.c b/src/base/idle.c old mode 100644 new mode 100755 index 1a86efaef..80125fcdd --- a/src/base/idle.c +++ b/src/base/idle.c @@ -1,4 +1,4 @@ -/** +/** * File: idle.c * Author: AWTK Develop Team * Brief: idle manager @@ -209,7 +209,7 @@ ret_t idle_queue(idle_func_t on_idle, void* ctx) { } ret_t idle_set_on_destroy(uint32_t idle_id, tk_destroy_t on_destroy, void* on_destroy_ctx) { - idle_info_t* item = idle_find(idle_id); + idle_info_t* item = (idle_info_t*)idle_find(idle_id); return_value_if_fail(item != NULL, RET_BAD_PARAMS); item->on_destroy = on_destroy; diff --git a/src/base/line_break.c b/src/base/line_break.c old mode 100644 new mode 100755 index cd1f52e3a..7250afa5e --- a/src/base/line_break.c +++ b/src/base/line_break.c @@ -1,4 +1,4 @@ -/** +/** * File: line_break.c * Author: AWTK Develop Team * Brief: line break and work break algorithm. @@ -51,7 +51,6 @@ break_type_t line_break_check(wchar_t c1, wchar_t c2) { } break_type_t word_break_check(wchar_t c1, wchar_t c2) { - int ret = 0; utf32_t s[2]; char brks[2]; static bool_t inited = FALSE; diff --git a/src/base/resource_manager.c b/src/base/resource_manager.c old mode 100644 new mode 100755 index 56a37e070..ef32882ad --- a/src/base/resource_manager.c +++ b/src/base/resource_manager.c @@ -1,4 +1,4 @@ -/** +/** * File: resource_manager.h * Author: AWTK Develop Team * Brief: resource manager @@ -282,7 +282,7 @@ ret_t resource_manager_unref(resource_manager_t* rm, const resource_info_t* info if (!(info->is_in_rom)) { bool_t remove = info->refcount <= 1; - resource_info_unref(info); + resource_info_unref((resource_info_t*)info); if (remove) { array_remove(&(rm->resources), NULL, (void*)info, NULL); } diff --git a/src/base/timer.c b/src/base/timer.c old mode 100644 new mode 100755 index b299448e1..f5c1d7c32 --- a/src/base/timer.c +++ b/src/base/timer.c @@ -261,7 +261,7 @@ ret_t timer_queue(timer_func_t on_timer, void* ctx, uint32_t duration) { } ret_t timer_set_on_destroy(uint32_t timer_id, tk_destroy_t on_destroy, void* on_destroy_ctx) { - timer_info_t* item = timer_find(timer_id); + timer_info_t* item = (timer_info_t*)timer_find(timer_id); return_value_if_fail(item != NULL, RET_BAD_PARAMS); item->on_destroy = on_destroy;