From e3494a0e043f83c39b865419034bd9ab980fd3a6 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Thu, 15 Sep 2016 12:29:53 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/15514 Smoke: Gluster Build System Reviewed-by: Niels de Vos NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- xlators/mgmt/glusterd/src/glusterd-handler.c | 1 - 1 file changed, 1 deletion(-) (limited to 'xlators') 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,}; -- cgit