diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-08-22 13:22:02 -0400 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-08-29 09:28:52 -0700 |
commit | 4af92dbe71b2ddbcf989fd8d59d93c17e6879311 (patch) | |
tree | d4f33dafa556861f6dbad037f093c7c55e690f64 | |
parent | d27b23576ba584942239b2432c792d4ff398b7fc (diff) |
glusterd (hooks): 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: I401090b0c51c90cf148c75756408c70ccee6a5e6
BUG: 1369124
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15267
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>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-hooks.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-hooks.c b/xlators/mgmt/glusterd/src/glusterd-hooks.c index cb3d38d2358..9229da9c45f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-hooks.c +++ b/xlators/mgmt/glusterd/src/glusterd-hooks.c @@ -236,7 +236,6 @@ static int glusterd_hooks_add_op_args (runner_t *runner, glusterd_op_t op, dict_t *op_ctx, glusterd_commit_hook_type_t type) { - char *hooks_args = NULL; int vol_count = 0; gf_boolean_t truth = _gf_false; glusterd_volinfo_t *voliter = NULL; @@ -322,7 +321,6 @@ glusterd_hooks_run_hooks (char *hooks_path, glusterd_op_t op, dict_t *op_ctx, glusterd_commit_hook_type_t type) { xlator_t *this = NULL; - glusterd_conf_t *priv = NULL; runner_t runner = {0,}; DIR *hookdir = NULL; struct dirent *entry = NULL; @@ -335,7 +333,6 @@ glusterd_hooks_run_hooks (char *hooks_path, glusterd_op_t op, dict_t *op_ctx, int ret = -1; this = THIS; - priv = this->private; ret = dict_get_str (op_ctx, "volname", &volname); if (ret) { |