This commit is contained in:
Denis Feklushkin 2024-09-13 15:56:35 +05:30 committed by GitHub
commit 4fe4da744a
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
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
list(TRANSFORM original_srcs PREPEND "${CMAKE_CURRENT_LIST_DIR}/")
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")