From 8d874901c03de9fed175abe3b47e04ca608037f8 Mon Sep 17 00:00:00 2001 From: fox Date: Fri, 7 Feb 2020 20:17:48 +0000 Subject: [PATCH] usr.bin/config: Suppress -Werror=stringop-truncation error. Add GCC_NO_STRINGOP_TRUNCATION to scan.c to prevent build failure. Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag. gcc version 8.3.0 Reviewed by: kamil@ --- usr.bin/config/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/config/Makefile b/usr.bin/config/Makefile index 640594211d9b..ea0bfa2d0022 100644 --- a/usr.bin/config/Makefile +++ b/usr.bin/config/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2019/10/13 07:28:14 mrg Exp $ +# $NetBSD: Makefile,v 1.12 2020/02/07 20:17:48 fox Exp $ # from: @(#)Makefile 8.2 (Berkeley) 4/19/94 .include @@ -17,6 +17,8 @@ YHEADER=1 CPPFLAGS+=-I${.CURDIR} -I. CPPFLAGS+= -I${NETBSDSRCDIR}/usr.bin/cksum +COPTS.scan.c+= ${GCC_NO_STRINGOP_TRUNCATION} + .ifndef HOSTPROG LDADD+=-lutil DPADD+=${LIBUTIL}