fix compile warnings

This commit is contained in:
xianjimli 2018-03-05 17:13:09 +08:00
parent 8a5b7a63a9
commit 7da0296ade
7 changed files with 10 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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; }

View File

@ -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

View File

@ -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

View File

@ -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();

View File

@ -19,6 +19,7 @@
*
*/
#include "base/timer.h"
#include "base/platform.h"
#include "button.h"
#include "delay.h"