summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-05-23 13:06:26 +0530
committerVijay Bellur <vbellur@redhat.com>2014-05-24 09:51:51 -0700
commitb7ae88b63fb6ea1abdb86669f2a786b94a6470b4 (patch)
treef861e22a4c0720385f8218e9adbcdba4ca45a433
parent090131cd75f781d71c01357d148895e417bd3da2 (diff)
libglusterfs: Fix unused variable warning
Change-Id: If385ba0993fdbd3e3b7500b2b6631721911e0ab3 BUG: 1100144 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/7858 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--libglusterfs/src/mem-pool.c6
-rw-r--r--xlators/encryption/crypt/src/crypt.c2
2 files changed, 3 insertions, 5 deletions
diff --git a/libglusterfs/src/mem-pool.c b/libglusterfs/src/mem-pool.c
index 6207e995bc3..356cfdb78ca 100644
--- a/libglusterfs/src/mem-pool.c
+++ b/libglusterfs/src/mem-pool.c
@@ -284,10 +284,10 @@ mem_pool_new_fn (unsigned long sizeof_type,
{
struct mem_pool *mem_pool = NULL;
unsigned long padded_sizeof_type = 0;
- void *pool = NULL;
- int i = 0;
+ GF_UNUSED void *pool = NULL;
+ GF_UNUSED int i = 0;
int ret = 0;
- struct list_head *list = NULL;
+ GF_UNUSED struct list_head *list = NULL;
glusterfs_ctx_t *ctx = NULL;
if (!sizeof_type || !count) {
diff --git a/xlators/encryption/crypt/src/crypt.c b/xlators/encryption/crypt/src/crypt.c
index f43989bb901..ae8cdb2ad24 100644
--- a/xlators/encryption/crypt/src/crypt.c
+++ b/xlators/encryption/crypt/src/crypt.c
@@ -3120,10 +3120,8 @@ static int32_t linkop_begin(call_frame_t *frame,
uint32_t new_mtd_size;
uint64_t value = 0;
void (*unwind_fn)(call_frame_t *frame);
- void (*wind_fn)(call_frame_t *frame, xlator_t *this);
mtd_op_t mop;
- wind_fn = linkop_wind_dispatch(local->fop);
unwind_fn = linkop_unwind_dispatch(local->fop);
mop = linkop_mtdop_dispatch(local->fop);