diff options
Diffstat (limited to 'external/boost/boost.wunused.patch')
-rw-r--r-- | external/boost/boost.wunused.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/external/boost/boost.wunused.patch b/external/boost/boost.wunused.patch new file mode 100644 index 000000000000..ddffa045ba29 --- /dev/null +++ b/external/boost/boost.wunused.patch @@ -0,0 +1,50 @@ +--- foo/foo/foo/boost/math/special_functions/airy.hpp ++++ foo/foo/foo/boost/math/special_functions/airy.hpp +@@ -340,13 +340,6 @@ + inline T airy_ai_zero(unsigned m, const Policy& pol) + { + BOOST_FPU_EXCEPTION_GUARD +- typedef typename policies::evaluation<T, Policy>::type value_type; +- typedef typename policies::normalise< +- Policy, +- policies::promote_float<false>, +- policies::promote_double<false>, +- policies::discrete_quantile<>, +- policies::assert_undefined<> >::type forwarding_policy; + BOOST_STATIC_ASSERT_MSG(false == std::numeric_limits<T>::is_integer, "Airy return type must be a floating-point type."); + return policies::checked_narrowing_cast<T, Policy>(detail::airy_ai_zero_imp<T>(m, pol), "boost::math::airy_ai_zero<%1%>(unsigned)"); + } +@@ -388,13 +381,6 @@ + inline T airy_bi_zero(unsigned m, const Policy& pol) + { + BOOST_FPU_EXCEPTION_GUARD +- typedef typename policies::evaluation<T, Policy>::type value_type; +- typedef typename policies::normalise< +- Policy, +- policies::promote_float<false>, +- policies::promote_double<false>, +- policies::discrete_quantile<>, +- policies::assert_undefined<> >::type forwarding_policy; + BOOST_STATIC_ASSERT_MSG(false == std::numeric_limits<T>::is_integer, "Airy return type must be a floating-point type."); + return policies::checked_narrowing_cast<T, Policy>(detail::airy_bi_zero_imp<T>(m, pol), "boost::math::airy_bi_zero<%1%>(unsigned)"); + } +--- foo/foo/foo/boost/multi_array/base.hpp ++++ foo/foo/foo/boost/multi_array/base.hpp +@@ -501,6 +501,7 @@ + // the "far side" of the range (the top if stride is positive, the bottom + // if stride is negative). + index bound_adjustment = stride < 0 ? 1 : 0; ++ (void) bound_adjustment; + BOOST_ASSERT(((index_bases[n] - bound_adjustment) <= finish) && + (finish <= (index_bases[n] + index(extents[n]) - bound_adjustment))); + #endif // BOOST_DISABLE_ASSERTS +--- foo/foo/foo/boost/unordered/detail/table.hpp ++++ foo/foo/foo/boost/unordered/detail/table.hpp +@@ -458,6 +458,7 @@ + // According to 23.2.1.8, if propagate_on_container_swap is + // false the behaviour is undefined unless the allocators + // are equal. ++ (void) other; + BOOST_ASSERT(node_alloc() == other.node_alloc()); + } + |