diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-08-22 12:11:24 -0400 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2016-08-29 05:00:49 -0700 |
commit | 00ee35093917f57b97b523decee9c58050d35d32 (patch) | |
tree | 64c37cc11570e74f5b98534475bb096aa48a97ff /rpc/rpc-lib | |
parent | 589a2c296ba8a778352ea54fd3d0fe02a573f053 (diff) |
rpc: fix unused variable warnings/errors
http://review.gluster.org/14085 fixes a/the "leak" - via the
generated rpc/xdr headers - of pragmas that mask these warnings.
However 14085 won't pass the smoke test until all the warnings are
fixed.
Change-Id: I20d91091bee0bf8f198a307ebba4b284bc3817ff
BUG: 1369124
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15240
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'rpc/rpc-lib')
-rw-r--r-- | rpc/rpc-lib/src/rpc-clnt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index a9e43eb42f1..e8a8ea2ecd9 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -395,7 +395,6 @@ rpc_clnt_reconnect (void *conn_ptr) rpc_transport_t *trans = NULL; rpc_clnt_connection_t *conn = NULL; struct timespec ts = {0, 0}; - int32_t ret = 0; struct rpc_clnt *clnt = NULL; gf_boolean_t need_unref = _gf_false; @@ -420,8 +419,8 @@ rpc_clnt_reconnect (void *conn_ptr) gf_log (conn->name, GF_LOG_TRACE, "attempting reconnect"); - ret = rpc_transport_connect (trans, - conn->config.remote_port); + (void) rpc_transport_connect (trans, + conn->config.remote_port); rpc_clnt_ref (clnt); conn->reconnect = gf_timer_call_after (clnt->ctx, ts, |