fix(esp): fix ESP-IDF pedantic builds (#4132)

This commit is contained in:
Tomas Rezucha 2023-04-14 11:39:24 +02:00 committed by GitHub
parent b770b6c74b
commit da278c764b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,7 @@ if(LV_MICROPYTHON)
else() else()
if(CONFIG_LV_BUILD_EXAMPLES) if(CONFIG_LV_BUILD_EXAMPLES)
file(GLOB_RECURSE EXAMPLE_SOURCES ${LVGL_ROOT_DIR}/examples/*.c) file(GLOB_RECURSE EXAMPLE_SOURCES ${LVGL_ROOT_DIR}/examples/*.c)
set_source_files_properties(${EXAMPLE_SOURCES} COMPILE_FLAGS "-Wno-unused-variable -Wno-format")
endif() endif()
if(CONFIG_LV_USE_DEMO_WIDGETS) if(CONFIG_LV_USE_DEMO_WIDGETS)
@ -36,6 +37,7 @@ else()
if(CONFIG_LV_USE_DEMO_MUSIC) if(CONFIG_LV_USE_DEMO_MUSIC)
file(GLOB_RECURSE DEMO_MUSIC_SOURCES ${LVGL_ROOT_DIR}/demos/music/*.c) file(GLOB_RECURSE DEMO_MUSIC_SOURCES ${LVGL_ROOT_DIR}/demos/music/*.c)
list(APPEND DEMO_SOURCES ${DEMO_MUSIC_SOURCES}) list(APPEND DEMO_SOURCES ${DEMO_MUSIC_SOURCES})
set_source_files_properties(${DEMO_MUSIC_SOURCES} COMPILE_FLAGS "-Wno-format")
endif() endif()
idf_component_register(SRCS ${SOURCES} ${EXAMPLE_SOURCES} ${DEMO_SOURCES} idf_component_register(SRCS ${SOURCES} ${EXAMPLE_SOURCES} ${DEMO_SOURCES}

View File

@ -1,2 +1,5 @@
description: LVGL - Light and Versatile Graphics Library description: LVGL - Light and Versatile Graphics Library
url: https://github.com/lvgl/lvgl url: https://lvgl.io/
repository: https://github.com/lvgl/lvgl.git
documentation: https://docs.lvgl.io/
issues: https://github.com/lvgl/lvgl/issues