summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-09-15 12:29:53 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-09-15 18:20:54 -0700
commite3494a0e043f83c39b865419034bd9ab980fd3a6 (patch)
tree11ca28e7c35269d8f35217a0b37ab1433e29f37c /xlators
parent62d254bf7931d2ed961a5e1d78eac609f671dbbe (diff)
glusterd/handler: fix unused variable warnings/errors
http://review.gluster.org/14085 fixes a "pragma leak" where the generated rpc/xdr headers have a pair of pragmas that disable these warnings. With the warnings disabled, many unused variables have crept into the code base. And 14085 won't pass its own smoke test until all these warnings are fixed. BUG: 1369124 Change-Id: Ia2742a44fcf1e16ade1f55287096dbecdb8eb9b7 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15514 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index c55184ab943..3824e6d1ba3 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -5012,7 +5012,6 @@ glusterd_get_state (rpcsvc_request_t *req, dict_t *dict)
{
int32_t ret = -1;
gf_cli_rsp rsp = {0,};
- int fd = -1;
FILE *fp = NULL;
DIR *dp = NULL;
char err_str[2048] = {0,};