Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/srtconfig usr.sbin/srtconfig: Suppress -Werror=stri...



details:   https://anonhg.NetBSD.org/src/rev/cfcb18c097be
branches:  trunk
changeset: 969150:cfcb18c097be
user:      fox <fox%NetBSD.org@localhost>
date:      Sun Feb 09 15:10:31 2020 +0000

description:
usr.sbin/srtconfig: Suppress -Werror=stringop-truncation error.

Add GCC_NO_STRINGOP_TRUNCATION to srtconfig.c to prevent build failure.

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

Reviewed by: kamil@

diffstat:

 usr.sbin/srtconfig/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r ec29210df3ef -r cfcb18c097be usr.sbin/srtconfig/Makefile
--- a/usr.sbin/srtconfig/Makefile       Sun Feb 09 12:28:28 2020 +0000
+++ b/usr.sbin/srtconfig/Makefile       Sun Feb 09 15:10:31 2020 +0000
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2006/12/29 10:39:59 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2020/02/09 15:10:31 fox Exp $
 # This file is in the public domain.
 
 PROG=  srtconfig
 SRCS=  srtconfig.c
 
+COPTS.srtconfig.c+=    ${GCC_NO_STRINGOP_TRUNCATION}
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index