Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/zcat use GCC_NO_IMPLICIT_FALLTHRU



details:   https://anonhg.NetBSD.org/src/rev/d42bb8f380b6
branches:  trunk
changeset: 378698:d42bb8f380b6
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Apr 24 04:50:47 2021 +0000

description:
use GCC_NO_IMPLICIT_FALLTHRU

diffstat:

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

diffs (20 lines):

diff -r 077096a928cc -r d42bb8f380b6 distrib/utils/zcat/Makefile
--- a/distrib/utils/zcat/Makefile       Sat Apr 24 00:49:26 2021 +0000
+++ b/distrib/utils/zcat/Makefile       Sat Apr 24 04:50:47 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2019/09/29 23:44:58 mrg Exp $
+# $NetBSD: Makefile,v 1.20 2021/04/24 04:50:47 mrg Exp $
 # Small zcat (i.e. for install media)
 #
 
@@ -26,9 +26,7 @@ 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
+COPTS.inflate.c+=      ${GCC_NO_IMPLICIT_FALLTHRU}
 
 .include <bsd.prog.mk>
 



Home | Main Index | Thread Index | Old Index