From 709709c6c1884a455f145105dc3982a674b9aae5 Mon Sep 17 00:00:00 2001 From: fox Date: Sun, 9 Feb 2020 15:10:31 +0000 Subject: [PATCH] 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@ --- usr.sbin/srtconfig/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/srtconfig/Makefile b/usr.sbin/srtconfig/Makefile index af9ab28de342..be3efee81a66 100644 --- a/usr.sbin/srtconfig/Makefile +++ b/usr.sbin/srtconfig/Makefile @@ -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