From 6111dce0e88184e85d106f2c2d9cb88d40f81ad0 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Tue, 28 Aug 2018 18:33:24 +0200 Subject: [PATCH] gcc thinks this may not be initialized --- unsupported/test/NonLinearOptimization.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/test/NonLinearOptimization.cpp b/unsupported/test/NonLinearOptimization.cpp index 1d682dd83..f0c336c15 100644 --- a/unsupported/test/NonLinearOptimization.cpp +++ b/unsupported/test/NonLinearOptimization.cpp @@ -565,7 +565,7 @@ void testLmdif1() // do the computation lmdif_functor functor; - DenseIndex nfev; + DenseIndex nfev = -1; // initialize to avoid maybe-uninitialized warning info = LevenbergMarquardt::lmdif1(functor, x, &nfev); // check return value