Random and disjoint warning fixed
MODIFY
thrust/mr/disjoint_pool.h
thrust/mr/disjoint_pool.h
@@ -114,8 +114,8 @@ public:
m_smallest_block_log2(detail::log2_ri(m_options.smallest_block_size)),
m_pools(m_bookkeeper),
m_allocated(m_bookkeeper),
- m_oversized(m_bookkeeper),
- m_cached_oversized(m_bookkeeper)
+ m_cached_oversized(m_bookkeeper),
+ m_oversized(m_bookkeeper)
{
assert(m_options.validate());
@@ -137,8 +137,8 @@ public:
m_smallest_block_log2(detail::log2_ri(m_options.smallest_block_size)),
m_pools(m_bookkeeper),
m_allocated(m_bookkeeper),
- m_oversized(m_bookkeeper),
- m_cached_oversized(m_bookkeeper)
+ m_cached_oversized(m_bookkeeper),
+ m_oversized(m_bookkeeper)
{
assert(m_options.validate());
@@ -487,4 +487,3 @@ public:
} // end mr
} // end thrust
-

MODIFY
thrust/random/detail/normal_distribution_base.h
thrust/random/detail/normal_distribution_base.h
@@ -56,7 +56,10 @@ template<typename RealType>
const uint_type urng_range = UniformRandomNumberGenerator::max - UniformRandomNumberGenerator::min;
// Constants for conversion
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wimplicit-int-float-conversion"
const RealType S1 = static_cast<RealType>(1) / urng_range;
+#pragma GCC diagnostic pop
const RealType S2 = S1 / 2;
RealType S3 = static_cast<RealType>(-1.4142135623730950488016887242097); // -sqrt(2)

Random and disjoint warning fixed