summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 13:22:03 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-08-29 09:35:27 -0700
commit2c13e7e04711ef6da55e7616f064f801a41cc46d (patch)
tree3d9aa6723a7761b311ff461bc3c2d82d9b0848fa
parent2740279cc66e03572aa3f1f47d18d1d708704d71 (diff)
glusterd (snapshot-utils): 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: I5d3372de16a1e03a6391885434ffea84f6a00412 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15277 CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD 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-snapshot-utils.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
index ef094c16f51..836184726a2 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
@@ -1478,7 +1478,6 @@ glusterd_gen_snap_volfiles (glusterd_volinfo_t *snap_vol, char *peer_snap_name)
int32_t ret = -1;
xlator_t *this = NULL;
glusterd_volinfo_t *parent_volinfo = NULL;
- glusterd_brickinfo_t *brickinfo = NULL;
this = THIS;
GF_ASSERT (this);
@@ -2020,7 +2019,6 @@ glusterd_add_snapd_to_dict (glusterd_volinfo_t *volinfo,
char base_key[1024] = {0};
char pidfile[PATH_MAX] = {0};
xlator_t *this = NULL;
- glusterd_conf_t *priv = NULL;
GF_ASSERT (volinfo);
@@ -2029,8 +2027,6 @@ glusterd_add_snapd_to_dict (glusterd_volinfo_t *volinfo,
this = THIS;
GF_ASSERT (this);
- priv = this->private;
-
snprintf (base_key, sizeof (base_key), "brick%d", count);
snprintf (key, sizeof (key), "%s.hostname", base_key);
ret = dict_set_str (dict, key, "Snapshot Daemon");
@@ -3011,7 +3007,6 @@ int32_t
glusterd_snap_quorum_check_for_clone (dict_t *dict, gf_boolean_t snap_volume,
char **op_errstr, uint32_t *op_errno)
{
- int32_t force = 0;
char err_str[PATH_MAX] = {0, };
char key_prefix[PATH_MAX] = {0, };
char *snapname = NULL;