fix warnings

This commit is contained in:
lixianjing 2021-03-18 08:00:56 +08:00
parent 8f0d6450b0
commit 8645a001be
5 changed files with 7 additions and 8 deletions

View File

@ -95,8 +95,6 @@ children_layouter_t* children_layouter_factory_create_layouter(children_layouter
*/
ret_t children_layouter_factory_destroy(children_layouter_factory_t* factory);
children_layouter_t* children_layouter_create(const char* params);
END_C_DECLS
#endif /*TK_CHILDREN_LAYOUTER_FACTORY_H*/

View File

@ -72,7 +72,6 @@ ret_t widget_get_children_for_layout(widget_t* widget, darray_t* result, bool_t
bool_t keep_invisible);
/* private */
ret_t widget_layout_children(widget_t* widget);
ret_t widget_auto_adjust_size(widget_t* widget);
END_C_DECLS

View File

@ -203,7 +203,7 @@ static const style_vtable_t style_const_vt = {
.set_style_data = style_const_set_style_data,
.destroy = style_const_destroy};
style_t* style_const_create() {
style_t* style_const_create(void) {
style_const_t* style = TKMEM_ZALLOC(style_const_t);
return_value_if_fail(style != NULL, NULL);

View File

@ -40,7 +40,7 @@ BEGIN_C_DECLS
*
* @return {ret_t} RET_OK表示成功
*/
ret_t socket_init();
ret_t socket_init(void);
/**
* @method socket_deinit
@ -49,7 +49,7 @@ ret_t socket_init();
*
* @return {ret_t} RET_OK表示成功
*/
ret_t socket_deinit();
ret_t socket_deinit(void);
/**
* @method socket_close

View File

@ -299,8 +299,6 @@ uint32_t wstr_count_char(wstr_t* str, wchar_t c);
*/
ret_t wstr_reset(wstr_t* str);
wchar_t* wcsdup(const wchar_t* s);
/**
* @method wcs_chr
*
@ -354,6 +352,10 @@ size_t wcs_len(const wchar_t* s);
*/
wchar_t* wcs_dup(const wchar_t* s);
#ifdef WITH_WCSXXX
wchar_t* wcsdup(const wchar_t* s);
#endif/*WITH_WCSXXX*/
END_C_DECLS
#endif /*WSTR_H*/