From c249bfebce8b1f4fd7ff14f49cf536a33ef32db1 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 30 May 2023 17:25:29 +0200 Subject: [PATCH] Fix -Wreturn-type --- include/boost/math/special_functions/lambert_w.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/boost/math/special_functions/lambert_w.hpp b/include/boost/math/special_functions/lambert_w.hpp index 945a45895..5b0fbaf63 100644 --- a/include/boost/math/special_functions/lambert_w.hpp +++ b/include/boost/math/special_functions/lambert_w.hpp @@ -1267,10 +1267,8 @@ inline T lambert_w0_imp(T z, const Policy& pol, const std::integral_constant(function, "Expected z >= -e^-1 (-0.367879...) but got %1%.", z, pol); return -1; } - else // z < 0.05 - { - return lambert_w_negative_rational_float(z, pol); - } + + return lambert_w_negative_rational_float(z, pol); } // T lambert_w0_imp(T z, const Policy& pol, const std::integral_constant&) for 32-bit usually float. template