Skip to content

Commit

Permalink
Fix GCC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Jul 30, 2024
1 parent 2e45590 commit cd0bd26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions include/boost/math/special_functions/powm1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/test_erf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions test/test_mapairy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd0bd26

Please sign in to comment.