Source-Changes-HG archive

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

[src/trunk]: src/lib/libc More cases to disable gcc-8 warnings only when we'r...



details:   https://anonhg.NetBSD.org/src/rev/53b0959c3d7d
branches:  trunk
changeset: 966018:53b0959c3d7d
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Oct 10 08:37:16 2019 +0000

description:
More cases to disable gcc-8 warnings only when we're using gcc>=8

diffstat:

 lib/libc/net/Makefile.inc    |  4 ++--
 lib/libc/resolv/Makefile.inc |  4 ++--
 lib/libc/rpc/Makefile.inc    |  4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r 42bb197857dc -r 53b0959c3d7d lib/libc/net/Makefile.inc
--- a/lib/libc/net/Makefile.inc Thu Oct 10 03:43:59 2019 +0000
+++ b/lib/libc/net/Makefile.inc Thu Oct 10 08:37:16 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.89 2019/10/09 23:39:20 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.90 2019/10/10 08:37:16 kre Exp $
 #      @(#)Makefile.inc        8.2 (Berkeley) 9/5/93
 
 # net sources
@@ -30,7 +30,7 @@
 YPREFIX=_nsyy
 YHEADER=1
 
-.if ${ACTIVE_CC} == "gcc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
 COPTS.getaddrinfo.c += -Wno-error=stringop-overflow
 .endif
 
diff -r 42bb197857dc -r 53b0959c3d7d lib/libc/resolv/Makefile.inc
--- a/lib/libc/resolv/Makefile.inc      Thu Oct 10 03:43:59 2019 +0000
+++ b/lib/libc/resolv/Makefile.inc      Thu Oct 10 08:37:16 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.6 2019/10/09 23:39:20 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.7 2019/10/10 08:37:16 kre Exp $
 
 # net sources
 .PATH: ${.CURDIR}/resolv
@@ -10,6 +10,6 @@
 # For COMPAT__RES
 SRCS+= res_compat.c
 
-.if ${ACTIVE_CC} == "gcc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
 COPTS.res_query.c += -Wno-error=stringop-overflow
 .endif
diff -r 42bb197857dc -r 53b0959c3d7d lib/libc/rpc/Makefile.inc
--- a/lib/libc/rpc/Makefile.inc Thu Oct 10 03:43:59 2019 +0000
+++ b/lib/libc/rpc/Makefile.inc Thu Oct 10 08:37:16 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.24 2019/10/09 23:39:20 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.25 2019/10/10 08:37:16 kre Exp $
 
 # librpc sources
 .PATH: ${.CURDIR}/rpc
@@ -18,7 +18,7 @@
 
 CPPFLAGS+=     -DPORTMAP
 
-.if ${ACTIVE_CC} == "gcc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
 COPTS.clnt_bcast.c += -Wno-error=cast-function-type
 COPTS.clnt_generic.c += -Wno-error=cast-function-type
 COPTS.clnt_vc.c += -Wno-error=cast-function-type



Home | Main Index | Thread Index | Old Index