mirror of
https://github.com/gperftools/gperftools
synced 2025-01-02 20:52:03 +00:00
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:
parent
f7c6835fac
commit
c29e3059dd
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user