coap: silence format truncation warning (appears with GCC 8)

This commit is contained in:
Ivan Grokhotkov 2019-03-28 16:28:25 +08:00
parent 76da10a665
commit 8016448fb1
2 changed files with 4 additions and 0 deletions

View 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)

View 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