Source-Changes-HG archive

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

[src/trunk]: src Only exclude gcc-8 warnings when the gcc we're using is gcc>=8



details:   https://anonhg.NetBSD.org/src/rev/6158f88e7864
branches:  trunk
changeset: 455175:6158f88e7864
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Oct 10 02:35:45 2019 +0000

description:
Only exclude gcc-8 warnings when the gcc we're using is gcc>=8

diffstat:

 external/cddl/osnet/lib/libdtrace/Makefile |  4 ++--
 lib/libpam/libpam/Makefile                 |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 51c61f0d68b6 -r 6158f88e7864 external/cddl/osnet/lib/libdtrace/Makefile
--- a/external/cddl/osnet/lib/libdtrace/Makefile        Thu Oct 10 02:30:43 2019 +0000
+++ b/external/cddl/osnet/lib/libdtrace/Makefile        Thu Oct 10 02:35:45 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.22 2019/10/09 21:49:50 christos Exp $
+#      $NetBSD: Makefile,v 1.23 2019/10/10 02:35:45 kre Exp $
 
 # $FreeBSD: head/cddl/lib/libdtrace/Makefile 314654 2017-03-04 11:30:04Z ngie $
 
@@ -85,7 +85,7 @@
 COPTS.dt_program.c     += -Wno-stack-protector
 COPTS.dt_provider.c    += -Wno-stack-protector
 COPTS.dt_subr.c                += -Wno-stack-protector
-.if ${ACTIVE_CC} == "gcc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
 COPTS.dt_lex.c         += -Wno-error=stringop-truncation
 COPTS.dt_pid.c         += -Wno-error=stringop-truncation
 .endif
diff -r 51c61f0d68b6 -r 6158f88e7864 lib/libpam/libpam/Makefile
--- a/lib/libpam/libpam/Makefile        Thu Oct 10 02:30:43 2019 +0000
+++ b/lib/libpam/libpam/Makefile        Thu Oct 10 02:35:45 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2019/10/09 22:05:09 christos Exp $
+# $NetBSD: Makefile,v 1.21 2019/10/10 02:37:40 kre Exp $
 #-
 # Copyright (c) 1998 Juniper Networks, Inc.
 # All rights reserved.
@@ -204,7 +204,7 @@
            openpam_static.o ${STATIC_MODULE_LIBS}
 
 CWARNFLAGS.clang+=     -Wno-error=tautological-pointer-compare
-.if ${ACTIVE_CC} == "gcc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
 COPTS.openpam_dynamic.c += -Wno-error=cast-function-type
 .endif
 



Home | Main Index | Thread Index | Old Index