From fb4445816a9775daf32b590d0158ef0271c2c866 Mon Sep 17 00:00:00 2001 From: Jeff Darcy Date: Thu, 6 Jul 2017 08:52:44 -0700 Subject: Build/test fixes - build_env, tirpc, mem-pool, cleanup Differential Revision: https://phabricator.intern.facebook.com/D5376801 Change-Id: I5bf733a395ef2b85065200fa5810ced27ee0d682 Reviewed-on: https://review.gluster.org/17719 Smoke: Gluster Build System Tested-by: Jeff Darcy CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- rpc/rpc-lib/src/rpc-clnt.c | 2 ++ rpc/rpc-lib/src/rpcsvc.c | 2 ++ rpc/rpc-lib/src/xdr-common.h | 7 +++++++ 3 files changed, 11 insertions(+) (limited to 'rpc/rpc-lib/src') diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index be18ed9f305..014b2a25d11 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -21,6 +21,8 @@ #include "xdr-rpc.h" #include "rpc-common-xdr.h" +#pragma GCC diagnostic ignored "-Wformat=" + void rpc_clnt_reply_deinit (struct rpc_req *req, struct mem_pool *pool); diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c index ed23f547e53..87a918ce8cb 100644 --- a/rpc/rpc-lib/src/rpcsvc.c +++ b/rpc/rpc-lib/src/rpcsvc.c @@ -44,6 +44,8 @@ #include "xdr-rpcclnt.h" #include "glusterfs-acl.h" +#pragma GCC diagnostic ignored "-Wformat=" + struct rpcsvc_program gluster_dump_prog; #define rpcsvc_alloc_request(svc, request) \ diff --git a/rpc/rpc-lib/src/xdr-common.h b/rpc/rpc-lib/src/xdr-common.h index 596ac99640f..211e33272ba 100644 --- a/rpc/rpc-lib/src/xdr-common.h +++ b/rpc/rpc-lib/src/xdr-common.h @@ -105,4 +105,11 @@ unsigned long xdr_sizeof (xdrproc_t func, void *data); #define xdr_decoded_length(xdr) (((size_t)(&xdr)->x_private) - ((size_t)(&xdr)->x_base)) +/* + * The TIRPC headers rather annoyingly don't define this, even though it + * actually exists. + */ +extern u_long xdr_sizeof (xdrproc_t freebsd_compiler_is_broken, + void *so_is_net_bsd); + #endif -- cgit