Module Name:    src
Committed By:   mrg
Date:           Wed Feb  6 09:17:18 UTC 2019

Modified Files:
        src/distrib/utils/zcat: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/distrib/utils/zcat/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/utils/zcat/Makefile
diff -u src/distrib/utils/zcat/Makefile:1.17 src/distrib/utils/zcat/Makefile:1.18
--- src/distrib/utils/zcat/Makefile:1.17	Thu Jan 12 01:58:03 2017
+++ src/distrib/utils/zcat/Makefile	Wed Feb  6 09:17:18 2019
@@ -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+=	-I${LIBC}/include
 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

Reply via email to