Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libz use GCC_NO_IMPLICIT_FALLTHRU.
details: https://anonhg.NetBSD.org/src/rev/8a3d5eb22544
branches: trunk
changeset: 961967:8a3d5eb22544
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Apr 26 07:17:30 2021 +0000
description:
use GCC_NO_IMPLICIT_FALLTHRU.
diffstat:
lib/libz/Makefile | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r 3cae240b707e -r 8a3d5eb22544 lib/libz/Makefile
--- a/lib/libz/Makefile Mon Apr 26 02:36:45 2021 +0000
+++ b/lib/libz/Makefile Mon Apr 26 07:17:30 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2019/09/29 23:44:59 mrg Exp $
+# $NetBSD: Makefile,v 1.26 2021/04/26 07:17:30 mrg Exp $
WARNS= 3
@@ -29,10 +29,8 @@
FILESMODE_zlib.pc= ${NONBINMODE}
FILESDIR_zlib.pc= /usr/lib/pkgconfig
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
-COPTS.infback.c+= -Wno-error=implicit-fallthrough
-COPTS.inflate.c+= -Wno-error=implicit-fallthrough
-.endif
+COPTS.infback.c+= ${GCC_NO_IMPLICIT_FALLTHRU}
+COPTS.inflate.c+= ${GCC_NO_IMPLICIT_FALLTHRU}
.include <bsd.lib.mk>
Home |
Main Index |
Thread Index |
Old Index