From ddb1f32a5c7e9b1368033e09309fb44598250aec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 4 Dec 2022 17:58:09 +0100 Subject: compat/lqt: fix warning without pragmas --- compat/LooseQuadtree-impl.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'compat') diff --git a/compat/LooseQuadtree-impl.h b/compat/LooseQuadtree-impl.h index 15ed889e..f9855f0c 100644 --- a/compat/LooseQuadtree-impl.h +++ b/compat/LooseQuadtree-impl.h @@ -17,10 +17,6 @@ #include #include -#if defined __clang__ || defined __CLION_IDE__ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" -#endif #ifdef __GNUG__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" @@ -230,10 +226,10 @@ void BlocksAllocator::ReleaseFreeBlocks() { assert(address_empties_it->second > 0 && address_empties_it->second <= blocks_head.slots_in_a_block_); if (address_empties_it->second >= blocks_head.slots_in_a_block_) { - *current = **reinterpret_cast(current); + *current = **(void***)current; } else { - current = *reinterpret_cast(current); + current = *(void***)current; } } auto address_empties_it = blocks_head.address_to_empty_slot_number.begin(); @@ -1411,9 +1407,6 @@ void LooseQuadtree::Query::Next() { #ifdef __GNUG__ #pragma GCC diagnostic pop #endif -#if defined __clang__ || defined __CLION_IDE__ -#pragma clang diagnostic pop -#endif #undef assert -- cgit v1.2.3