fix(examples/imgfont): fix warning (#4275)

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
_VIFEXTech
2023-06-12 18:22:12 +08:00
committed by GitHub
parent 4af41d9496
commit 77b77e8017

View File

@@ -22,6 +22,7 @@ static bool get_imgfont_path(const lv_font_t * font, void * img_src,
} }
else { else {
char * path = (char *)img_src; char * path = (char *)img_src;
LV_UNUSED(path);
#if LV_USE_FFMPEG #if LV_USE_FFMPEG
lv_snprintf(path, len, "%s/%04X.png", "lvgl/examples/assets/emoji", unicode); lv_snprintf(path, len, "%s/%04X.png", "lvgl/examples/assets/emoji", unicode);
#elif LV_USE_PNG #elif LV_USE_PNG