Skip to content

Commit 1f137a5

Browse files
Merge pull request #912 from ldorau/Fix_getGlobalLruListSize_is_needed_only_in_debug_mode
Fix: `getGlobalLruListSize()` is needed only in debug mode
2 parents 3c4a84b + 4e62f3c commit 1f137a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ipc_cache.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ umf_result_t umfIpcCacheGlobalInit(void) {
8989
return ret;
9090
}
9191

92+
#ifndef NDEBUG
9293
static size_t getGlobalLruListSize(lru_list_t lru_list) {
9394
size_t size = 0;
9495
ipc_handle_cache_entry_t *tmp;
9596
DL_COUNT(lru_list, tmp, size);
9697
return size;
9798
}
99+
#endif /* NDEBUG */
98100

99101
void umfIpcCacheGlobalTearDown(void) {
100102
ipc_mapped_handle_cache_global_t *cache_global = IPC_MAPPED_CACHE_GLOBAL;

0 commit comments

Comments
 (0)