Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / math / special_functions / next.hpp
index e27bf0e..b98bf00 100644 (file)
@@ -489,7 +489,7 @@ T float_distance_imp(const T& a, const T& b, const mpl::true_&, const Policy& po
    // because we actually have fewer than tools::digits<T>()
    // significant bits in the representation:
    //
-   frexp(((boost::math::fpclassify)(a) == (int)FP_SUBNORMAL) ? tools::min_value<T>() : a, &expon);
+   (void)frexp(((boost::math::fpclassify)(a) == (int)FP_SUBNORMAL) ? tools::min_value<T>() : a, &expon);
    T upper = ldexp(T(1), expon);
    T result = T(0);
    //
@@ -499,7 +499,7 @@ T float_distance_imp(const T& a, const T& b, const mpl::true_&, const Policy& po
    if(b > upper)
    {
       int expon2;
-      frexp(b, &expon2);
+      (void)frexp(b, &expon2);
       T upper2 = ldexp(T(0.5), expon2);
       result = float_distance(upper2, b);
       result += (expon2 - expon - 1) * ldexp(T(1), tools::digits<T>() - 1);
@@ -714,7 +714,7 @@ T float_advance_imp(T val, int distance, const mpl::true_&, const Policy& pol)
    }
 
    int expon;
-   frexp(val, &expon);
+   (void)frexp(val, &expon);
    T limit = ldexp((distance < 0 ? T(0.5f) : T(1)), expon);
    if(val <= tools::min_value<T>())
    {