Module Name:    src
Committed By:   kre
Date:           Thu Oct 10 08:37:16 UTC 2019

Modified Files:
        src/lib/libc/net: Makefile.inc
        src/lib/libc/resolv: Makefile.inc
        src/lib/libc/rpc: Makefile.inc

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


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/lib/libc/net/Makefile.inc
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/resolv/Makefile.inc
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/rpc/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/net/Makefile.inc
diff -u src/lib/libc/net/Makefile.inc:1.89 src/lib/libc/net/Makefile.inc:1.90
--- src/lib/libc/net/Makefile.inc:1.89	Wed Oct  9 23:39:20 2019
+++ src/lib/libc/net/Makefile.inc	Thu Oct 10 08:37:16 2019
@@ -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 @@ LPREFIX=_nsyy
 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
 

Index: src/lib/libc/resolv/Makefile.inc
diff -u src/lib/libc/resolv/Makefile.inc:1.6 src/lib/libc/resolv/Makefile.inc:1.7
--- src/lib/libc/resolv/Makefile.inc:1.6	Wed Oct  9 23:39:20 2019
+++ src/lib/libc/resolv/Makefile.inc	Thu Oct 10 08:37:16 2019
@@ -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 @@ SRCS+=	h_errno.c herror.c res_comp.c res
 # 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

Index: src/lib/libc/rpc/Makefile.inc
diff -u src/lib/libc/rpc/Makefile.inc:1.24 src/lib/libc/rpc/Makefile.inc:1.25
--- src/lib/libc/rpc/Makefile.inc:1.24	Wed Oct  9 23:39:20 2019
+++ src/lib/libc/rpc/Makefile.inc	Thu Oct 10 08:37:16 2019
@@ -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 @@ SRCS+=	auth_none.c auth_unix.c authunix_
 
 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

Reply via email to