From 0be585179e5bcac78c08dd20d28ce3c119ea965d Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 10 Oct 2019 14:05:46 +0200 Subject: [PATCH] spiffs: fix warning when building at release optimization level Closes https://github.com/espressif/esp-idf/issues/4144 --- components/spiffs/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/components/spiffs/CMakeLists.txt b/components/spiffs/CMakeLists.txt index dfe4643c0..0c68155dc 100644 --- a/components/spiffs/CMakeLists.txt +++ b/components/spiffs/CMakeLists.txt @@ -10,3 +10,4 @@ idf_component_register(SRCS "esp_spiffs.c" REQUIRES spi_flash PRIV_REQUIRES bootloader_support) +set_source_files_properties(spiffs/src/spiffs_nucleus.c PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation) \ No newline at end of file