Trying to defeat gcc 8 (2)

This commit is contained in:
Evgenii Pravda 2019-03-27 00:55:37 +03:00
parent 6157ddba0d
commit bc4eb309e2
2 changed files with 8 additions and 10 deletions

View File

@ -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
}

View File

@ -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>