summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2019-03-21 09:57:10 +0530
committerAtin Mukherjee <amukherj@redhat.com>2019-03-22 12:45:38 +0000
commit1f94395c356748c0f51c76d5de3be5f6cf603547 (patch)
treef7ca75da2204560e1905a991293d09be1abe35d2 /libglusterfs
parenta7c746577249af6326907e280843e1f4c0231bb0 (diff)
inode: fix unused vars
Commit 6d6a3b2 introduced some unused vars. This patch defines them within #ifdef DEBUG Fixes: bz#1580315 Change-Id: I8a332b00c3ffb66689b4b6480c490b9436c17d63 Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c
index a823110d325..02b4d4938d1 100644
--- a/libglusterfs/src/inode.c
+++ b/libglusterfs/src/inode.c
@@ -2491,9 +2491,10 @@ inode_table_dump_to_dict(inode_table_t *itable, char *prefix, dict_t *dict)
0,
};
int ret = 0;
+#ifdef DEBUG
inode_t *inode = NULL;
int count = 0;
-
+#endif
ret = pthread_mutex_trylock(&itable->lock);
if (ret)
return;