- use -Wno-error=format-truncation

This commit is contained in:
mrg 2019-02-04 03:58:41 +00:00
parent 9c07d7ddd1
commit a0193bc54d
4 changed files with 24 additions and 4 deletions

View File

@ -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}

View File

@ -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>

View File

@ -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>

View File

@ -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>