summaryrefslogtreecommitdiff
path: root/boost/math/special_functions/bernoulli.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/special_functions/bernoulli.hpp')
-rw-r--r--boost/math/special_functions/bernoulli.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/math/special_functions/bernoulli.hpp b/boost/math/special_functions/bernoulli.hpp
index 2c2ccd5..5f2b7e1 100644
--- a/boost/math/special_functions/bernoulli.hpp
+++ b/boost/math/special_functions/bernoulli.hpp
@@ -63,7 +63,7 @@ inline T bernoulli_b2n(const int i, const Policy &pol)
if(i < 0)
return policies::raise_domain_error<T>("boost::math::bernoulli_b2n<%1%>", "Index should be >= 0 but got %1%", T(i), pol);
- T result;
+ T result = 0; // The = 0 is just to silence compiler warings :-(
boost::math::detail::bernoulli_number_imp<T>(&result, static_cast<std::size_t>(i), 1u, pol, tag_type());
return result;
}