diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile index 9bc59abae9a3..4f118ab31b54 100644 --- a/usr.bin/make/Makefile +++ b/usr.bin/make/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.60 2018/06/10 17:55:11 christos Exp $ +# $NetBSD: Makefile,v 1.61 2019/02/04 03:58:41 mrg Exp $ # @(#)Makefile 5.2 (Berkeley) 12/28/90 PROG= make @@ -46,6 +46,10 @@ LDADD+=-lutil DPADD+=${LIBUTIL} .endif +.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +COPTS.arch.c += -Wno-error=format-truncation +.endif + # A simple unit-test driver to help catch regressions accept test: cd ${.CURDIR}/unit-tests && MAKEFLAGS= ${.MAKE} -r -m / TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET} diff --git a/usr.bin/newsyslog/Makefile b/usr.bin/newsyslog/Makefile index 5009e762932b..02ecc92fdcb2 100644 --- a/usr.bin/newsyslog/Makefile +++ b/usr.bin/newsyslog/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2009/04/14 22:15:24 lukem Exp $ +# $NetBSD: Makefile,v 1.19 2019/02/04 03:58:41 mrg Exp $ PROG= newsyslog SRCS= newsyslog.c @@ -6,4 +6,10 @@ SRCS= newsyslog.c MAN= newsyslog.8 MLINKS+=newsyslog.8 newsyslog.conf.5 +.include + +.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +COPTS.newsyslog.c += -Wno-error=format-truncation +.endif + .include diff --git a/usr.bin/rdist/Makefile b/usr.bin/rdist/Makefile index 20117c62c33d..2929167d5275 100644 --- a/usr.bin/rdist/Makefile +++ b/usr.bin/rdist/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2007/05/28 12:06:29 tls Exp $ +# $NetBSD: Makefile,v 1.12 2019/02/04 03:58:41 mrg Exp $ # from: @(#)Makefile 8.3 (Berkeley) 7/19/93 USE_FORT?= yes # network client/server @@ -7,4 +7,10 @@ CPPFLAGS+= -I${.CURDIR} PROG= rdist SRCS= docmd.c expand.c gram.y lookup.c main.c server.c +.include + +.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +COPTS.server.c += -Wno-error=format-truncation +.endif + .include diff --git a/usr.bin/systat/Makefile b/usr.bin/systat/Makefile index 780ea93710f3..6fccd9718392 100644 --- a/usr.bin/systat/Makefile +++ b/usr.bin/systat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2016/12/23 10:19:57 mrg Exp $ +# $NetBSD: Makefile,v 1.41 2019/02/04 03:58:41 mrg Exp $ # @(#)Makefile 8.1 (Berkeley) 6/6/93 .include @@ -29,4 +29,8 @@ SRCS+= ip6.c .include "../../compat/exec.mk" +.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +COPTS.df.c += -Wno-error=format-truncation +.endif + .include