external/cddl/osnet: Suppress -Werror=stringop-truncation error.

Add GCC_NO_STRINGOP_TRUNCATION dwarf.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
This commit is contained in:
fox 2020-02-09 07:55:13 +00:00
parent 2873fa744e
commit b796f1c940
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2018/05/28 21:05:11 chs Exp $
# $NetBSD: Makefile,v 1.9 2020/02/09 07:55:13 fox Exp $
# $FreeBSD: head/cddl/usr.bin/ctfconvert/Makefile 314654 2017-03-04 11:30:04Z ngie $
@ -34,6 +34,7 @@ SRCS= alist.c \
traverse.c \
util.c
COPTS.dwarf.c += ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.st_parse.c += -Wno-format-nonliteral
COPTS.util.c += -Wno-format-nonliteral