From c9922d5701743a7490b9d4254f51b41df717c00d Mon Sep 17 00:00:00 2001 From: Benign X <1341398182@qq.com> Date: Thu, 4 Apr 2024 14:57:05 +0800 Subject: [PATCH] chore(vg_lite_tvg): fix build warnings (#5984) Signed-off-by: Xu Xingliang Co-authored-by: Xu Xingliang --- env_support/cmake/custom.cmake | 2 ++ src/others/vg_lite_tvg/vg_lite_tvg.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/env_support/cmake/custom.cmake b/env_support/cmake/custom.cmake index 9800468eb..fc338bb9c 100644 --- a/env_support/cmake/custom.cmake +++ b/env_support/cmake/custom.cmake @@ -51,6 +51,8 @@ if(NOT LV_CONF_BUILD_DISABLE_THORVG_INTERNAL) target_link_libraries(lvgl_thorvg PUBLIC lvgl) endif() +set_source_files_properties(${LVGL_ROOT_DIR}/src/others/vg_lite_tvg/vg_lite_tvg.cpp PROPERTIES COMPILE_FLAGS -Wunused-parameter) + # Build LVGL example library if(NOT LV_CONF_BUILD_DISABLE_EXAMPLES) add_library(lvgl_examples ${EXAMPLE_SOURCES}) diff --git a/src/others/vg_lite_tvg/vg_lite_tvg.cpp b/src/others/vg_lite_tvg/vg_lite_tvg.cpp index 1e0bc1f0f..1aab01883 100644 --- a/src/others/vg_lite_tvg/vg_lite_tvg.cpp +++ b/src/others/vg_lite_tvg/vg_lite_tvg.cpp @@ -1739,6 +1739,9 @@ Empty_sequence_handler: vg_lite_blend_t blend, vg_lite_filter_t filter) { + LV_UNUSED(paint_color); + LV_UNUSED(filter); + auto ctx = vg_lite_ctx::get_instance(); TVG_CHECK_RETURN_VG_ERROR(canvas_set_target(ctx, target));