Module Name: src
Committed By: mrg
Date: Mon Feb 4 03:58:41 UTC 2019
Modified Files:
src/usr.bin/make: Makefile
src/usr.bin/newsyslog: Makefile
src/usr.bin/rdist: Makefile
src/usr.bin/systat: Makefile
Log Message:
- use -Wno-error=format-truncation
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/usr.bin/make/Makefile
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/newsyslog/Makefile
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/rdist/Makefile
cvs rdiff -u -r1.40 -r1.41 src/usr.bin/systat/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/make/Makefile
diff -u src/usr.bin/make/Makefile:1.60 src/usr.bin/make/Makefile:1.61
--- src/usr.bin/make/Makefile:1.60 Sun Jun 10 17:55:11 2018
+++ src/usr.bin/make/Makefile Mon Feb 4 03:58:41 2019
@@ -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}
Index: src/usr.bin/newsyslog/Makefile
diff -u src/usr.bin/newsyslog/Makefile:1.18 src/usr.bin/newsyslog/Makefile:1.19
--- src/usr.bin/newsyslog/Makefile:1.18 Tue Apr 14 22:15:24 2009
+++ src/usr.bin/newsyslog/Makefile Mon Feb 4 03:58:41 2019
@@ -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 <bsd.own.mk>
+
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.newsyslog.c += -Wno-error=format-truncation
+.endif
+
.include <bsd.prog.mk>
Index: src/usr.bin/rdist/Makefile
diff -u src/usr.bin/rdist/Makefile:1.11 src/usr.bin/rdist/Makefile:1.12
--- src/usr.bin/rdist/Makefile:1.11 Mon May 28 12:06:29 2007
+++ src/usr.bin/rdist/Makefile Mon Feb 4 03:58:41 2019
@@ -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 <bsd.own.mk>
+
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.server.c += -Wno-error=format-truncation
+.endif
+
.include <bsd.prog.mk>
Index: src/usr.bin/systat/Makefile
diff -u src/usr.bin/systat/Makefile:1.40 src/usr.bin/systat/Makefile:1.41
--- src/usr.bin/systat/Makefile:1.40 Fri Dec 23 10:19:57 2016
+++ src/usr.bin/systat/Makefile Mon Feb 4 03:58:41 2019
@@ -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 <bsd.own.mk>
@@ -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 <bsd.prog.mk>