From 1f94395c356748c0f51c76d5de3be5f6cf603547 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Thu, 21 Mar 2019 09:57:10 +0530 Subject: 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 --- libglusterfs/src/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libglusterfs/src') 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; -- cgit