diff options
| author | Atin Mukherjee <amukherj@redhat.com> | 2019-03-21 09:57:10 +0530 | 
|---|---|---|
| committer | Atin Mukherjee <amukherj@redhat.com> | 2019-03-22 12:45:38 +0000 | 
| commit | 1f94395c356748c0f51c76d5de3be5f6cf603547 (patch) | |
| tree | f7ca75da2204560e1905a991293d09be1abe35d2 | |
| parent | a7c746577249af6326907e280843e1f4c0231bb0 (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>
| -rw-r--r-- | cli/src/cli-rpc-ops.c | 3 | ||||
| -rw-r--r-- | libglusterfs/src/inode.c | 3 | 
2 files changed, 4 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 819b54a47c2..a80a23c6928 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -7607,8 +7607,9 @@ cli_print_volume_status_itables(dict_t *dict, char *prefix)      uint32_t lru_size = 0;      uint32_t purge_size = 0;      uint32_t lru_limit = 0; +#ifdef DEBUG      int i = 0; - +#endif      GF_ASSERT(dict);      GF_ASSERT(prefix); 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;  | 
