From 209f2cb62c37ef50ff55965a3e141de4a30e10c0 Mon Sep 17 00:00:00 2001 From: Denis Feklushkin Date: Mon, 15 Apr 2024 18:57:46 +0300 Subject: [PATCH] compilation with -save-temps fixed --- components/spiffs/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/spiffs/CMakeLists.txt b/components/spiffs/CMakeLists.txt index 11a346ce92ec..10c041badd48 100644 --- a/components/spiffs/CMakeLists.txt +++ b/components/spiffs/CMakeLists.txt @@ -22,3 +22,6 @@ idf_component_register(SRCS ${srcs} # 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")