mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Trying to defeat gcc 8 (2)
This commit is contained in:
parent
6157ddba0d
commit
bc4eb309e2
@ -19,12 +19,6 @@
|
||||
#include <emmintrin.h>
|
||||
#endif
|
||||
|
||||
// Allow std::pair copying
|
||||
#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 8)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wclass-memaccess"
|
||||
#endif
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
@ -355,7 +349,4 @@ template class ColumnVector<Int64>;
|
||||
template class ColumnVector<Int128>;
|
||||
template class ColumnVector<Float32>;
|
||||
template class ColumnVector<Float64>;
|
||||
#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 8)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
@ -195,6 +195,11 @@ struct RadixSortPairIntKeyTraits
|
||||
};
|
||||
|
||||
|
||||
// Allow std::pair copying
|
||||
#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 8)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wclass-memaccess"
|
||||
#endif
|
||||
template <typename Traits>
|
||||
struct RadixSort
|
||||
{
|
||||
@ -289,7 +294,9 @@ public:
|
||||
allocator.deallocate(swap_buffer, size * sizeof(Element));
|
||||
}
|
||||
};
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 8)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
std::enable_if_t<std::is_unsigned_v<T> && std::is_integral_v<T>, void>
|
||||
|
Loading…
Reference in New Issue
Block a user