Module Name: src
Committed By: fox
Date: Fri Feb 7 20:17:48 UTC 2020
Modified Files:
src/usr.bin/config: Makefile
Log Message:
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@
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/config/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/config/Makefile
diff -u src/usr.bin/config/Makefile:1.11 src/usr.bin/config/Makefile:1.12
--- src/usr.bin/config/Makefile:1.11 Sun Oct 13 07:28:14 2019
+++ src/usr.bin/config/Makefile Fri Feb 7 20:17:48 2020
@@ -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 <bsd.own.mk>
@@ -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}