From 55d70915665a73e951acc505a82a1ddee00609c8 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 22 Aug 2016 13:22:03 -0400 Subject: glusterd: 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: Ibe060202efb1f175a4348ff0927a7b44303d96e6 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/15283 Reviewed-by: Niels de Vos Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Prashanth Pai --- xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c index af1bd6d70d6..fe5d4c8e348 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -2848,11 +2848,8 @@ glusterd_clearlocks_send_cmd (glusterd_volinfo_t *volinfo, char *cmd, int err_len, char *mntpt) { int ret = -1; - glusterd_conf_t *priv = NULL; char abspath[PATH_MAX] = {0, }; - priv = THIS->private; - snprintf (abspath, sizeof (abspath), "%s/%s", mntpt, path); ret = sys_lgetxattr (abspath, cmd, result, PATH_MAX); if (ret < 0) { @@ -2871,9 +2868,6 @@ int glusterd_clearlocks_rmdir_mount (glusterd_volinfo_t *volinfo, char *mntpt) { int ret = -1; - glusterd_conf_t *priv = NULL; - - priv = THIS->private; ret = sys_rmdir (mntpt); if (ret) { @@ -2919,12 +2913,9 @@ int glusterd_clearlocks_create_mount (glusterd_volinfo_t *volinfo, char **mntpt) { int ret = -1; - glusterd_conf_t *priv = NULL; char template[PATH_MAX] = {0,}; char *tmpl = NULL; - priv = THIS->private; - snprintf (template, sizeof (template), "/tmp/%s.XXXXXX", volinfo->volname); tmpl = mkdtemp (template); @@ -2997,7 +2988,6 @@ glusterd_clearlocks_get_local_client_ports (glusterd_volinfo_t *volinfo, char **xl_opts) { glusterd_brickinfo_t *brickinfo = NULL; - glusterd_conf_t *priv = NULL; char brickname[PATH_MAX] = {0,}; int index = 0; int ret = -1; @@ -3011,8 +3001,6 @@ glusterd_clearlocks_get_local_client_ports (glusterd_volinfo_t *volinfo, goto out; } - priv = THIS->private; - index = -1; cds_list_for_each_entry (brickinfo, &volinfo->bricks, brick_list) { index++; -- cgit