summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 12:11:24 -0400
committerJeff Darcy <jdarcy@redhat.com>2016-08-29 05:00:49 -0700
commit00ee35093917f57b97b523decee9c58050d35d32 (patch)
tree64c37cc11570e74f5b98534475bb096aa48a97ff /rpc/rpc-transport
parent589a2c296ba8a778352ea54fd3d0fe02a573f053 (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-transport')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index deec0cbc6f4..ad578dd740c 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -412,13 +412,11 @@ static int
__socket_cached_read (rpc_transport_t *this, struct iovec *opvector, int opcount)
{
socket_private_t *priv = NULL;
- int sock = -1;
struct gf_sock_incoming *in = NULL;
int req_len = -1;
int ret = -1;
priv = this->private;
- sock = priv->sock;
in = &priv->incoming;
req_len = iov_length (opvector, opcount);