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/71998f93b41d
branches:  trunk
changeset: 982783:71998f93b41d
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 9f74dd30d17a -r 71998f93b41d 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