From b796f1c940737f80913c43eced0624905fdfdf6a Mon Sep 17 00:00:00 2001 From: fox Date: Sun, 9 Feb 2020 07:55:13 +0000 Subject: [PATCH] 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@ --- external/cddl/osnet/usr.bin/ctfconvert/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/external/cddl/osnet/usr.bin/ctfconvert/Makefile b/external/cddl/osnet/usr.bin/ctfconvert/Makefile index c7810df21e9b..26b5bee5e001 100644 --- a/external/cddl/osnet/usr.bin/ctfconvert/Makefile +++ b/external/cddl/osnet/usr.bin/ctfconvert/Makefile @@ -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