diff options
| author | mrg <mrg@NetBSD.org> | 2019-02-04 03:58:41 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2019-02-04 03:58:41 +0000 |
| commit | d9f13cd32ee68a6c2a83df0d0b039b2912c7efee (patch) | |
| tree | 4245f2c251d9472c978351deac707600a833da7d /usr.bin/make | |
| parent | 9a8e2de493497490c22e15a67d3e16be4016142e (diff) | |
- use -Wno-error=format-truncation
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile index 9bc59abae9a..4f118ab31b5 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} |
