1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix warnings

This commit is contained in:
Gabor Kiss-Vamosi 2019-11-04 20:43:49 +01:00
parent b44b926156
commit e45d083436
2 changed files with 9 additions and 1 deletions

View File

@ -131,6 +131,14 @@ void * lv_ll_get_prev(const lv_ll_t * ll_p, const void * n_act);
*/
uint32_t lv_ll_get_len(const lv_ll_t * ll_p);
/**
* TODO
* @param ll_p
* @param n1_p
* @param n2_p
*/
void lv_ll_swap(lv_ll_t * ll_p, void * n1_p, void * n2_p);
/**
* Move a nodw before an other node in the same linked list
* @param ll_p pointer to a linked list

View File

@ -905,7 +905,7 @@ void lv_label_ins_text(lv_obj_t * label, uint32_t pos, const char * txt)
}
#if LV_USE_BIDI
char * bidi_buf = lv_mem_alloc(ins_len) + 1;
char * bidi_buf = lv_mem_alloc(ins_len + 1);
LV_ASSERT_MEM(bidi_buf);
if(bidi_buf == NULL) return;