diff --git a/core/hakmem_tiny_fastcache.inc.h b/core/hakmem_tiny_fastcache.inc.h index bf734579..1723288f 100644 --- a/core/hakmem_tiny_fastcache.inc.h +++ b/core/hakmem_tiny_fastcache.inc.h @@ -45,6 +45,7 @@ extern unsigned long long g_fast_push_full[]; extern unsigned long long g_fast_push_disabled[]; extern unsigned long long g_fast_push_zero_cap[]; +#if !HAKMEM_BUILD_RELEASE static int g_fast_debug_mode = -1; static int g_fast_debug_limit = 8; static _Atomic int g_fast_debug_seen[TINY_NUM_CLASSES]; @@ -68,6 +69,11 @@ static inline void tiny_fast_debug_log(int class_idx, const char* event, uint16_ class_idx, event, (unsigned)count, (unsigned)cap); } } +#else +static inline void tiny_fast_debug_log(int class_idx, const char* event, uint16_t count, uint16_t cap) { + (void)class_idx; (void)event; (void)count; (void)cap; +} +#endif // Tracepoint macros (no-op if not defined) #ifndef HAK_TP1