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

chore: fix warning (#5004)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
_VIFEXTech 2023-12-13 22:42:40 +08:00 committed by GitHub
parent de2f7effd9
commit bf4354f158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -162,7 +162,8 @@ void lv_linux_drm_set_file(lv_display_t * disp, const char * file, int64_t conne
lv_display_set_dpi(disp, DIV_ROUND_UP(hor_res * 25400, width * 1000));
}
LV_LOG_INFO("Resolution is set to %dx%d at %ddpi", hor_res, ver_res, lv_display_get_dpi(disp));
LV_LOG_INFO("Resolution is set to %" LV_PRId32 "x%" LV_PRId32 " at %" LV_PRId32 "dpi",
hor_res, ver_res, lv_display_get_dpi(disp));
}
/**********************

View File

@ -211,7 +211,8 @@ void lv_linux_fbdev_set_file(lv_display_t * disp, const char * file)
lv_display_set_dpi(disp, DIV_ROUND_UP(hor_res * 254, width * 10));
}
LV_LOG_INFO("Resolution is set to %dx%d at %ddpi", hor_res, ver_res, lv_display_get_dpi(disp));
LV_LOG_INFO("Resolution is set to %" LV_PRId32 "x%" LV_PRId32 " at %" LV_PRId32 "dpi",
hor_res, ver_res, lv_display_get_dpi(disp));
}
/**********************

View File

@ -136,7 +136,8 @@ int lv_nuttx_fbdev_set_file(lv_display_t * disp, const char * file)
lv_display_set_resolution(disp, dsc->vinfo.xres, dsc->vinfo.yres);
lv_timer_set_cb(disp->refr_timer, display_refr_timer_cb);
LV_LOG_USER("Resolution is set to %dx%d at %ddpi", dsc->vinfo.xres, dsc->vinfo.yres, lv_display_get_dpi(disp));
LV_LOG_USER("Resolution is set to %dx%d at %" LV_PRId32 "dpi",
dsc->vinfo.xres, dsc->vinfo.yres, lv_display_get_dpi(disp));
return 0;
errout:

View File

@ -770,7 +770,7 @@ static lv_result_t decode_compressed(lv_image_decoder_t * decoder, lv_image_deco
uint32_t rn;
uint32_t len;
uint32_t compressed_len;
uint8_t * file_buf;
uint8_t * file_buf = NULL;
decoder_data_t * decoder_data = get_decoder_data(dsc);
lv_result_t res;
lv_image_compressed_t * compressed = &decoder_data->compressed;