]> granicus.if.org Git - esp-idf/commitdiff
coap: silence format truncation warning (appears with GCC 8)
authorIvan Grokhotkov <ivan@espressif.com>
Thu, 28 Mar 2019 08:28:25 +0000 (16:28 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 28 Mar 2019 08:28:25 +0000 (16:28 +0800)
components/coap/CMakeLists.txt
components/coap/component.mk

index 5c3fcd783d9c6dac46a05abd5d55be16e381ddaf..45788001c8eeac17af73f009d3616e08f1ef6b79 100644 (file)
@@ -29,3 +29,5 @@ register_component()
 # TODO: find a way to move this to a port header
 target_compile_definitions(${COMPONENT_TARGET} PUBLIC WITH_POSIX)
 
+# Silence format truncation warning, until it is fixed upstream
+set_source_files_properties(libcoap/src/coap_debug.c PROPERTIES COMPILE_FLAGS -Wno-format-truncation)
index b5a50afeb7a0b49129d8e4d6a6c80d53ab39a997..2eb07afd2c95d22e029d9361aab8f96260d951aa 100644 (file)
@@ -10,3 +10,5 @@ COMPONENT_SRCDIRS := libcoap/src libcoap port
 
 COMPONENT_SUBMODULES += libcoap
 
+# Silence format truncation warning, until it is fixed upstream
+libcoap/src/coap_debug.o: CFLAGS += -Wno-format-truncation