2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Fix GCC warnings

This commit is contained in:
Matt Borland
2024-07-30 16:23:52 -04:00
parent 49cc43cd52
commit 635bd3215e
3 changed files with 6 additions and 8 deletions

View File

@@ -64,10 +64,8 @@ BOOST_MATH_GPU_ENABLED inline T powm1_imp_dispatch(const T x, const T y, const P
if (boost::math::trunc(y / 2) == y / 2)
return powm1_imp(T(-x), T(y), pol);
}
else
{
return powm1_imp(T(x), T(y), pol);
}
return powm1_imp(T(x), T(y), pol);
}
} // detail

View File

@@ -12,8 +12,8 @@
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wliteral-range"
#elif defined(__GNUC__)
# pragma gcc diagnostic push
# pragma gcc diagnostic ignored "-Wliteral-range"
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wliteral-range"
#endif
#include <boost/math/special_functions/erf.hpp>

View File

@@ -8,8 +8,8 @@
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wliteral-range"
#elif defined(__GNUC__)
# pragma gcc diagnostic push
# pragma gcc diagnostic ignored "-Wliteral-range"
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wliteral-range"
#endif
#define BOOST_TEST_MAIN