change(ci): enable -Werror=unused-but-set-variable

This commit is contained in:
Alexey Lapshin
2026-07-16 10:54:36 +07:00
parent bf4218a71f
commit 1791325998
27 changed files with 117 additions and 51 deletions
@@ -4,3 +4,8 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(i80_controller)
# TODO IDF-15784: remove
# lvgl upstream sets locals without reading them; silence -Wunused-but-set-variable
idf_component_get_property(lvgl_lib lvgl__lvgl COMPONENT_LIB)
target_compile_options(${lvgl_lib} PRIVATE -Wno-unused-but-set-variable)