Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc Add -Wno-error for gcc-8 warnings
details: https://anonhg.NetBSD.org/src/rev/b865e84acda0
branches: trunk
changeset: 464524:b865e84acda0
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 09 23:39:20 2019 +0000
description:
Add -Wno-error for gcc-8 warnings
diffstat:
lib/libc/net/Makefile.inc | 6 +++++-
lib/libc/resolv/Makefile.inc | 6 +++++-
lib/libc/rpc/Makefile.inc | 14 +++++++++++++-
3 files changed, 23 insertions(+), 3 deletions(-)
diffs (65 lines):
diff -r d0856dc02b1f -r b865e84acda0 lib/libc/net/Makefile.inc
--- a/lib/libc/net/Makefile.inc Wed Oct 09 23:23:41 2019 +0000
+++ b/lib/libc/net/Makefile.inc Wed Oct 09 23:39:20 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.88 2018/08/02 08:40:48 rjs Exp $
+# $NetBSD: Makefile.inc,v 1.89 2019/10/09 23:39:20 christos Exp $
# @(#)Makefile.inc 8.2 (Berkeley) 9/5/93
# net sources
@@ -30,6 +30,10 @@
YPREFIX=_nsyy
YHEADER=1
+.if ${ACTIVE_CC} == "gcc"
+COPTS.getaddrinfo.c += -Wno-error=stringop-overflow
+.endif
+
CLEANFILES+=nsparser.c nslexer.c nsparser.h
nslexer.c: nslexer.l nsparser.h
diff -r d0856dc02b1f -r b865e84acda0 lib/libc/resolv/Makefile.inc
--- a/lib/libc/resolv/Makefile.inc Wed Oct 09 23:23:41 2019 +0000
+++ b/lib/libc/resolv/Makefile.inc Wed Oct 09 23:39:20 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.5 2014/01/16 20:31:43 christos Exp $
+# $NetBSD: Makefile.inc,v 1.6 2019/10/09 23:39:20 christos Exp $
# net sources
.PATH: ${.CURDIR}/resolv
@@ -9,3 +9,7 @@
res_state.c mtctxres.c
# For COMPAT__RES
SRCS+= res_compat.c
+
+.if ${ACTIVE_CC} == "gcc"
+COPTS.res_query.c += -Wno-error=stringop-overflow
+.endif
diff -r d0856dc02b1f -r b865e84acda0 lib/libc/rpc/Makefile.inc
--- a/lib/libc/rpc/Makefile.inc Wed Oct 09 23:23:41 2019 +0000
+++ b/lib/libc/rpc/Makefile.inc Wed Oct 09 23:39:20 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.23 2015/11/06 19:34:13 christos Exp $
+# $NetBSD: Makefile.inc,v 1.24 2019/10/09 23:39:20 christos Exp $
# librpc sources
.PATH: ${.CURDIR}/rpc
@@ -18,6 +18,18 @@
CPPFLAGS+= -DPORTMAP
+.if ${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
+COPTS.pmap_getmaps.c += -Wno-error=cast-function-type
+COPTS.rpc_generic.c += -Wno-error=cast-function-type
+COPTS.rpcb_clnt.c += -Wno-error=cast-function-type
+COPTS.svc_simple.c += -Wno-error=cast-function-type
+COPTS.xdr_sizeof.c += -Wno-error=cast-function-type
+COPTS.getrpcent.c += -Wno-error=stringop-truncation
+.endif
+
MAN+= bindresvport.3 getnetconfig.3 getnetpath.3 getrpcent.3 getrpcport.3 \
rpc.3 rpc_soc.3 rpc_clnt_auth.3 rpc_clnt_calls.3 rpc_clnt_create.3 \
rpc_svc_calls.3 rpc_svc_create.3 rpc_svc_err.3 rpc_svc_reg.3 \
Home |
Main Index |
Thread Index |
Old Index