mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-18 21:19:31 +03:00
Suppress warning instead
This commit is contained in:
parent
74e5af4766
commit
0ac3930ecf
1 changed files with 4 additions and 2 deletions
|
@ -59,8 +59,10 @@ static bool mi_heap_page_is_valid(mi_heap_t* heap, mi_page_queue_t* pq, mi_page_
|
||||||
MI_UNUSED(pq);
|
MI_UNUSED(pq);
|
||||||
mi_assert_internal(mi_page_heap(page) == heap);
|
mi_assert_internal(mi_page_heap(page) == heap);
|
||||||
mi_segment_t* segment = _mi_page_segment(page);
|
mi_segment_t* segment = _mi_page_segment(page);
|
||||||
mi_threadid_t thread_id = atomic_load(&segment->thread_id);
|
#pragma GCC diagnostic push
|
||||||
mi_assert_internal(thread_id == heap->thread_id);
|
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||||
|
mi_assert_internal(segment->thread_id == heap->thread_id);
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
mi_assert_expensive(_mi_page_is_valid(page));
|
mi_assert_expensive(_mi_page_is_valid(page));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue