fix asan compile error

This commit is contained in:
obdev
2023-06-08 13:12:29 +00:00
committed by ob-robot
parent d404c0fe28
commit d977b59b60
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ void *ObMallocAllocator::alloc(const int64_t size)
void *ObMallocAllocator::alloc(const int64_t size, const oceanbase::lib::ObMemAttr &_attr) void *ObMallocAllocator::alloc(const int64_t size, const oceanbase::lib::ObMemAttr &_attr)
{ {
#ifdef OB_USE_ASAN #ifdef OB_USE_ASAN
UNUSED(attr); UNUSED(_attr);
return ::malloc(size); return ::malloc(size);
#else #else
SANITY_DISABLE_CHECK_RANGE(); // prevent sanity_check_range SANITY_DISABLE_CHECK_RANGE(); // prevent sanity_check_range

View File

@ -60,7 +60,7 @@ public:
void set_max_chunk_cache_size(const int64_t max_cache_size) void set_max_chunk_cache_size(const int64_t max_cache_size)
{ {
#ifdef OB_USE_ASAN #ifdef OB_USE_ASAN
UNUSED(size); UNUSED(max_cache_size);
max_chunk_cache_size_ = 0; max_chunk_cache_size_ = 0;
#else #else
max_chunk_cache_size_ = max_cache_size; max_chunk_cache_size_ = max_cache_size;