Skip to content

Commit cd0bd26

Browse files
committed
Fix GCC warnings
1 parent 2e45590 commit cd0bd26

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

include/boost/math/special_functions/powm1.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ BOOST_MATH_GPU_ENABLED inline T powm1_imp_dispatch(const T x, const T y, const P
6464
if (boost::math::trunc(y / 2) == y / 2)
6565
return powm1_imp(T(-x), T(y), pol);
6666
}
67-
else
68-
{
69-
return powm1_imp(T(x), T(y), pol);
70-
}
67+
68+
return powm1_imp(T(x), T(y), pol);
7169
}
7270

7371
} // detail

test/test_erf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# pragma clang diagnostic push
1313
# pragma clang diagnostic ignored "-Wliteral-range"
1414
#elif defined(__GNUC__)
15-
# pragma gcc diagnostic push
16-
# pragma gcc diagnostic ignored "-Wliteral-range"
15+
# pragma GCC diagnostic push
16+
# pragma GCC diagnostic ignored "-Wliteral-range"
1717
#endif
1818

1919
#include <boost/math/special_functions/erf.hpp>

test/test_mapairy.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# pragma clang diagnostic push
99
# pragma clang diagnostic ignored "-Wliteral-range"
1010
#elif defined(__GNUC__)
11-
# pragma gcc diagnostic push
12-
# pragma gcc diagnostic ignored "-Wliteral-range"
11+
# pragma GCC diagnostic push
12+
# pragma GCC diagnostic ignored "-Wliteral-range"
1313
#endif
1414

1515
#define BOOST_TEST_MAIN

0 commit comments

Comments
 (0)