diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-04 17:58:09 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-04 17:58:09 +0100 |
commit | ddb1f32a5c7e9b1368033e09309fb44598250aec (patch) | |
tree | dac97ad09661ad30f13bac8fec73bc3b40655afc /compat | |
parent | acee46dec55fd0f011dbdf2c252369fabe149d14 (diff) |
compat/lqt: fix warning without pragmas
Diffstat (limited to 'compat')
-rw-r--r-- | compat/LooseQuadtree-impl.h | 11 |
1 files changed, 2 insertions, 9 deletions
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 <type_traits> #include <vector> -#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<void***>(current); + *current = **(void***)current; } else { - current = *reinterpret_cast<void***>(current); + current = *(void***)current; } } auto address_empties_it = blocks_head.address_to_empty_slot_number.begin(); @@ -1411,9 +1407,6 @@ void LooseQuadtree<NumberT, ObjectT, BoundingBoxExtractorT>::Query::Next() { #ifdef __GNUG__ #pragma GCC diagnostic pop #endif -#if defined __clang__ || defined __CLION_IDE__ -#pragma clang diagnostic pop -#endif #undef assert |