mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
fix warnings
This commit is contained in:
parent
0543b4d77f
commit
b91d42b6d5
@ -75,7 +75,7 @@ void lv_log_add(lv_log_level_t level, const char * file, int line, const char *
|
|||||||
static const char * lvl_prefix[] = {"Trace", "Info", "Warn", "Error", "User"};
|
static const char * lvl_prefix[] = {"Trace", "Info", "Warn", "Error", "User"};
|
||||||
printf("%s: %s \t(%s #%d)\n", lvl_prefix[level], buf, file, line);
|
printf("%s: %s \t(%s #%d)\n", lvl_prefix[level], buf, file, line);
|
||||||
#else
|
#else
|
||||||
if(custom_print_cb) custom_print_cb(level, file, line, dsc);
|
if(custom_print_cb) custom_print_cb(level, file, line, buf);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -534,7 +534,9 @@ void lv_dropdown_close(lv_obj_t * ddlist, lv_anim_enable_t anim)
|
|||||||
ext->pr_opt_id = LV_DROPDOWN_PR_NONE;
|
ext->pr_opt_id = LV_DROPDOWN_PR_NONE;
|
||||||
|
|
||||||
if(ext->anim_time == 0 || anim == LV_ANIM_OFF) {
|
if(ext->anim_time == 0 || anim == LV_ANIM_OFF) {
|
||||||
|
#if LV_USE_ANIMATION
|
||||||
lv_anim_del(ddlist, list_anim);
|
lv_anim_del(ddlist, list_anim);
|
||||||
|
#endif
|
||||||
lv_obj_del(ext->page);
|
lv_obj_del(ext->page);
|
||||||
ext->page = NULL;
|
ext->page = NULL;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user