From 05b4b7ec86364a18e32bd9180d529457d74117e7 Mon Sep 17 00:00:00 2001 From: Luigi Ballabio Date: Fri, 4 Oct 2024 11:46:47 +0200 Subject: [PATCH] Avoid another warning --- ql/math/optimization/levenbergmarquardt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ql/math/optimization/levenbergmarquardt.cpp b/ql/math/optimization/levenbergmarquardt.cpp index e7b66406c6..23015289fd 100644 --- a/ql/math/optimization/levenbergmarquardt.cpp +++ b/ql/math/optimization/levenbergmarquardt.cpp @@ -128,6 +128,8 @@ namespace QuantLib { case 6: ecType = EndCriteria::FunctionEpsilonTooSmall; break; + default: + QL_FAIL("unknown MINPACK result: " << info); } // set problem std::copy(xx.get(), xx.get()+n, x_.begin());