summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-12-07 07:45:57 +0100
committerAtin Mukherjee <amukherj@redhat.com>2017-01-31 02:55:34 -0500
commit7292905c3a3291a98b55b36aed713a10553d7523 (patch)
treea1abca62eb6998463a75173554f9cccc2d1f421a /xlators/mgmt/glusterd/src/glusterd-utils.c
parentf2ca301bd741e3e3f076cd3f72fcd377bcef2a1a (diff)
glusterd: fix compiler warning (unused var) if bd xlator is not enabled
BUG: 1402254 Change-Id: Id4450c5e00e9eb6d63dcdf65b0a13bc535a32d98 Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-on: https://review.gluster.org/16049 Tested-by: Atin Mukherjee <amukherj@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 5cad58cbb2e..6f12a34d624 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -1107,7 +1107,9 @@ glusterd_brickinfo_new_from_brick (char *brick,
char *path = NULL;
char *tmp_host = NULL;
char *tmp_path = NULL;
+#ifdef HAVE_BD_XLATOR
char *vg = NULL;
+#endif
int32_t ret = -1;
glusterd_brickinfo_t *new_brickinfo = NULL;
xlator_t *this = NULL;
@@ -1140,8 +1142,6 @@ glusterd_brickinfo_new_from_brick (char *brick,
*vg = '\0';
}
new_brickinfo->caps = CAPS_BD;
-#else
- vg = NULL; /* Avoid compiler warnings when BD not enabled */
#endif
ret = gf_canonicalize_path (path);
if (ret)