mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-09 04:15:52 +00:00
libc-net/resolv: silence warning in 3rd-party code
This commit is contained in:
parent
e1e1fa23b7
commit
c2a2ec121f
@ -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
|
||||
|
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user