mark CheckCachedSizeClass as used

It is only used from inside ASSERT and clang doesn't like it being
declared but unused when NDEBUG is set.
This commit is contained in:
Aliaksey Kandratsenka 2023-07-13 18:57:22 -04:00
parent f7c6835fac
commit c29e3059dd

View File

@ -1171,7 +1171,7 @@ static TCMallocGuard module_enter_exit_hook;
// Helpers for the exported routines below
//-------------------------------------------------------------------
static inline bool CheckCachedSizeClass(void *ptr) {
static ATTRIBUTE_UNUSED bool CheckCachedSizeClass(void *ptr) {
PageID p = reinterpret_cast<uintptr_t>(ptr) >> kPageShift;
uint32 cached_value;
if (!Static::pageheap()->TryGetSizeClass(p, &cached_value)) {