diff --git a/repos/libports/lib/mk/libc-net.mk b/repos/libports/lib/mk/libc-net.mk index 551f3be4f..3fb1e946f 100644 --- a/repos/libports/lib/mk/libc-net.mk +++ b/repos/libports/lib/mk/libc-net.mk @@ -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 diff --git a/repos/libports/lib/mk/libc-resolv.mk b/repos/libports/lib/mk/libc-resolv.mk index d84b47ab6..99e9f58a3 100644 --- a/repos/libports/lib/mk/libc-resolv.mk +++ b/repos/libports/lib/mk/libc-resolv.mk @@ -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 =