Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/zcat pply zlib hack for gcc 7 here too (4th oc...



details:   https://anonhg.NetBSD.org/src/rev/abdfe134fd36
branches:  trunk
changeset: 839065:abdfe134fd36
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Feb 06 09:17:18 2019 +0000

description:
pply zlib hack for gcc 7 here too (4th occurance!)

diffstat:

 distrib/utils/zcat/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 6db1d681ec4c -r abdfe134fd36 distrib/utils/zcat/Makefile
--- a/distrib/utils/zcat/Makefile       Wed Feb 06 09:16:49 2019 +0000
+++ b/distrib/utils/zcat/Makefile       Wed Feb 06 09:17:18 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2017/01/12 01:58:03 christos Exp $
+# $NetBSD: Makefile,v 1.18 2019/02/06 09:17:18 mrg Exp $
 # Small zcat (i.e. for install media)
 #
 
@@ -26,6 +26,10 @@
 CPPFLAGS+=     -Dsnprintf=snprintf_ss -Dsprintf=sprintf_ss
 CPPFLAGS+=     -Dstrerror=strerror_ss
 
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.inflate.c+=      -Wno-error=implicit-fallthrough
+.endif
+
 .include <bsd.prog.mk>
 
 test: zcat



Home | Main Index | Thread Index | Old Index