This commit is contained in:
Doctor Lai 2024-12-30 11:41:16 -08:00 committed by GitHub
commit 55fc7e5f3b
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +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);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
mi_assert_internal(segment->thread_id == heap->thread_id); 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;
} }