mirror of
https://github.com/zlgopen/awtk.git
synced 2025-05-08 19:44:45 +08:00
fix compile warnings
This commit is contained in:
parent
8a5b7a63a9
commit
7da0296ade
@ -48,7 +48,7 @@ ret_t lftk_init(wh_t w, wh_t h, uint32_t* heap, uint32_t size);
|
||||
*
|
||||
* @return {ret_t} 返回RET_OK表示成功,否则表示失败。
|
||||
*/
|
||||
ret_t lftk_run();
|
||||
ret_t lftk_run(void);
|
||||
|
||||
/**
|
||||
* @method lftk_quit
|
||||
@ -57,7 +57,7 @@ ret_t lftk_run();
|
||||
*
|
||||
* @return {ret_t} 返回RET_OK表示成功,否则表示失败。
|
||||
*/
|
||||
ret_t lftk_quit();
|
||||
ret_t lftk_quit(void);
|
||||
|
||||
END_C_DECLS
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
BEGIN_C_DECLS
|
||||
|
||||
ret_t platform_prepare(void);
|
||||
uint32_t get_time_ms();
|
||||
uint32_t get_time_ms(void);
|
||||
|
||||
END_C_DECLS
|
||||
|
||||
|
@ -120,4 +120,4 @@ ret_t timer_check() {
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
ret_t timer_count() { return ensure_timer_manager() == RET_OK ? s_timer_manager->size : 0; }
|
||||
uint32_t timer_count() { return ensure_timer_manager() == RET_OK ? s_timer_manager->size : 0; }
|
||||
|
@ -43,8 +43,8 @@ typedef struct _timer_t {
|
||||
ret_t timer_init(timer_get_time_t get_time);
|
||||
ret_t timer_add(timer_func_t on_timer, void* user_data, uint32_t duration_ms);
|
||||
ret_t timer_remove(timer_func_t on_timer, void* user_data, uint32_t duration_ms);
|
||||
ret_t timer_check();
|
||||
ret_t timer_count();
|
||||
ret_t timer_check(void);
|
||||
uint32_t timer_count(void);
|
||||
|
||||
END_C_DECLS
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* File: value.h
|
||||
* Author: Li XianJing <xianjimli@hotmail.com>
|
||||
* Brief: generic value type
|
||||
@ -430,7 +430,7 @@ value_t* value_set_int(value_t* v, int32_t value);
|
||||
*
|
||||
* @return {value_t*} 对象。
|
||||
*/
|
||||
value_t* value_create();
|
||||
value_t* value_create(void);
|
||||
|
||||
/**
|
||||
* @method value_destroy
|
||||
|
@ -282,7 +282,7 @@ ret_t widget_dispatch(widget_t* widget, event_t* e) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret_t widget_on(widget_t* widget, event_type_t type, event_func_t on_event, void* ctx) {
|
||||
uint32_t widget_on(widget_t* widget, event_type_t type, event_func_t on_event, void* ctx) {
|
||||
return_value_if_fail(widget != NULL && on_event != NULL, RET_BAD_PARAMS);
|
||||
if (widget->emitter == NULL) {
|
||||
widget->emitter = emitter_create();
|
||||
|
@ -19,6 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "base/timer.h"
|
||||
#include "base/platform.h"
|
||||
#include "button.h"
|
||||
#include "delay.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user