Module Name: src Committed By: christos Date: Wed Oct 9 23:39:20 UTC 2019
Modified Files: src/lib/libc/net: Makefile.inc src/lib/libc/resolv: Makefile.inc src/lib/libc/rpc: Makefile.inc Log Message: Add -Wno-error for gcc-8 warnings To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.89 src/lib/libc/net/Makefile.inc cvs rdiff -u -r1.5 -r1.6 src/lib/libc/resolv/Makefile.inc cvs rdiff -u -r1.23 -r1.24 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.88 src/lib/libc/net/Makefile.inc:1.89 --- src/lib/libc/net/Makefile.inc:1.88 Thu Aug 2 04:40:48 2018 +++ src/lib/libc/net/Makefile.inc Wed Oct 9 19:39:20 2019 @@ -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 @@ LPREFIX=_nsyy 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 Index: src/lib/libc/resolv/Makefile.inc diff -u src/lib/libc/resolv/Makefile.inc:1.5 src/lib/libc/resolv/Makefile.inc:1.6 --- src/lib/libc/resolv/Makefile.inc:1.5 Thu Jan 16 15:31:43 2014 +++ src/lib/libc/resolv/Makefile.inc Wed Oct 9 19:39:20 2019 @@ -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 @@ SRCS+= h_errno.c herror.c res_comp.c res 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 Index: src/lib/libc/rpc/Makefile.inc diff -u src/lib/libc/rpc/Makefile.inc:1.23 src/lib/libc/rpc/Makefile.inc:1.24 --- src/lib/libc/rpc/Makefile.inc:1.23 Fri Nov 6 14:34:13 2015 +++ src/lib/libc/rpc/Makefile.inc Wed Oct 9 19:39:20 2019 @@ -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 @@ SRCS+= auth_none.c auth_unix.c authunix_ 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 \