This commit is contained in:
Denis Feklushkin 2024-09-20 14:40:32 +08:00 committed by GitHub
commit 71987834ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,9 +19,9 @@ idf_component_register(SRCS ${srcs}
REQUIRES esp_partition REQUIRES esp_partition
PRIV_REQUIRES ${pr} spi_flash) PRIV_REQUIRES ${pr} spi_flash)
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
set_source_files_properties(spiffs/src/spiffs_nucleus.c PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation)
endif()
# Upstream SPIFFS code uses format specifiers in debug logging macros inconsistently # Upstream SPIFFS code uses format specifiers in debug logging macros inconsistently
list(TRANSFORM original_srcs PREPEND "${CMAKE_CURRENT_LIST_DIR}/")
set_source_files_properties(${original_srcs} PROPERTIES COMPILE_FLAGS -Wno-format) set_source_files_properties(${original_srcs} PROPERTIES COMPILE_FLAGS -Wno-format)
get_source_file_property(nucleus_cc_flags "${CMAKE_CURRENT_LIST_DIR}/spiffs/src/spiffs_nucleus.c" COMPILE_FLAGS)
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/spiffs/src/spiffs_nucleus.c" PROPERTIES COMPILE_FLAGS "${nucleus_cc_flags} -Wno-tautological-compare")