mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
fix warnings
This commit is contained in:
parent
8f0d6450b0
commit
8645a001be
@ -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*/
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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*/
|
||||
|
Loading…
Reference in New Issue
Block a user