Source-Changes-HG archive

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

[src/trunk]: src/usr.bin - use -Wno-error=format-truncation



details:   https://anonhg.NetBSD.org/src/rev/98912d0587fc
branches:  trunk
changeset: 996522:98912d0587fc
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Feb 04 03:58:41 2019 +0000

description:
- use -Wno-error=format-truncation

diffstat:

 usr.bin/make/Makefile      |  6 +++++-
 usr.bin/newsyslog/Makefile |  8 +++++++-
 usr.bin/rdist/Makefile     |  8 +++++++-
 usr.bin/systat/Makefile    |  6 +++++-
 4 files changed, 24 insertions(+), 4 deletions(-)

diffs (78 lines):

diff -r 756b879895a2 -r 98912d0587fc usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Mon Feb 04 03:33:15 2019 +0000
+++ b/usr.bin/make/Makefile     Mon Feb 04 03:58:41 2019 +0000
@@ -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 @@
 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 -r 756b879895a2 -r 98912d0587fc usr.bin/newsyslog/Makefile
--- a/usr.bin/newsyslog/Makefile        Mon Feb 04 03:33:15 2019 +0000
+++ b/usr.bin/newsyslog/Makefile        Mon Feb 04 03:58:41 2019 +0000
@@ -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 @@
 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>
diff -r 756b879895a2 -r 98912d0587fc usr.bin/rdist/Makefile
--- a/usr.bin/rdist/Makefile    Mon Feb 04 03:33:15 2019 +0000
+++ b/usr.bin/rdist/Makefile    Mon Feb 04 03:58:41 2019 +0000
@@ -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 @@
 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>
diff -r 756b879895a2 -r 98912d0587fc usr.bin/systat/Makefile
--- a/usr.bin/systat/Makefile   Mon Feb 04 03:33:15 2019 +0000
+++ b/usr.bin/systat/Makefile   Mon Feb 04 03:58:41 2019 +0000
@@ -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 @@
 
 .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>



Home | Main Index | Thread Index | Old Index