chore: fix build warning using LV_UNUSED (#5116)

This commit is contained in:
Benign X
2023-12-28 17:59:49 +08:00
committed by GitHub
parent 431a290942
commit 6e20a7cfce
4 changed files with 10 additions and 0 deletions

View File

@@ -79,6 +79,10 @@ static void * buf_align(void * buf, lv_color_format_t color_format)
static void invalidate_cache(void * buf, uint32_t stride, lv_color_format_t color_format, const lv_area_t * area)
{
LV_UNUSED(buf);
LV_UNUSED(stride);
LV_UNUSED(color_format);
LV_UNUSED(area);
}
static uint32_t width_to_stride(uint32_t w, lv_color_format_t color_format)

View File

@@ -204,6 +204,8 @@ void lv_vg_lite_path_get_bonding_box(lv_vg_lite_path_t * path,
static void path_bounds_iter_cb(void * user_data, uint8_t op_code, const float * data, uint32_t len)
{
LV_UNUSED(op_code);
if(len == 0) {
return;
}

View File

@@ -251,6 +251,8 @@ const char * lv_vg_lite_vlc_op_string(uint8_t vlc_op)
static void path_data_print_cb(void * user_data, uint8_t op_code, const float * data, uint32_t len)
{
LV_UNUSED(user_data);
LV_LOG("%s, ", lv_vg_lite_vlc_op_string(op_code));
for(uint32_t i = 0; i < len; i++) {
LV_LOG("%0.2f, ", data[i]);

View File

@@ -63,6 +63,8 @@ static void freetype_image_release_cb(const lv_font_t * font, lv_font_glyph_dsc_
lv_freetype_cache_context_t * lv_freetype_cache_context_create(lv_freetype_context_t * ctx)
{
LV_UNUSED(ctx);
lv_freetype_cache_context_t * cache_ctx = lv_malloc(sizeof(lv_freetype_cache_context_t));
LV_ASSERT_MALLOC(cache_ctx);
lv_memzero(cache_ctx, sizeof(lv_freetype_cache_context_t));