libc-net/resolv: silence warning in 3rd-party code

This commit is contained in:
Norman Feske 2020-01-03 15:58:42 +01:00 committed by Christian Helmuth
parent e1e1fa23b7
commit c2a2ec121f
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ SRC_C += vars.c
# b64_ntop
SRC_C += base64.c
# suppress "warning: strncpy specified bound depends on the length of the source argument"
CC_OPT_getaddrinfo := -Wno-stringop-overflow
include $(REP_DIR)/lib/mk/libc-common.inc
INC_DIR += $(LIBC_REP_DIR)/include/libc

View File

@ -11,6 +11,9 @@ INC_DIR += $(LIBC_DIR)/sys/sys
CC_DEF += -DSTDERR_FILENO=2
# suppress "warning: strncpy specified bound depends on the length of the source argument"
CC_OPT_res_query := -Wno-stringop-overflow
vpath %.c $(LIBC_RESOLV_DIR)
CC_CXX_WARN_STRICT =