Skip to content

Commit 8016448

Browse files
committed
coap: silence format truncation warning (appears with GCC 8)
1 parent 76da10a commit 8016448

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

components/coap/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ register_component()
2929
# TODO: find a way to move this to a port header
3030
target_compile_definitions(${COMPONENT_TARGET} PUBLIC WITH_POSIX)
3131

32+
# Silence format truncation warning, until it is fixed upstream
33+
set_source_files_properties(libcoap/src/coap_debug.c PROPERTIES COMPILE_FLAGS -Wno-format-truncation)

components/coap/component.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ COMPONENT_SRCDIRS := libcoap/src libcoap port
1010

1111
COMPONENT_SUBMODULES += libcoap
1212

13+
# Silence format truncation warning, until it is fixed upstream
14+
libcoap/src/coap_debug.o: CFLAGS += -Wno-format-truncation

0 commit comments

Comments
 (0)