gcc thinks this may not be initialized

This commit is contained in:
Christoph Hertzberg 2018-08-28 18:33:24 +02:00
parent 73ca600bca
commit 20ba2eee6d

View File

@ -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<lmdif_functor>::lmdif1(functor, x, &nfev);
// check return value