mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
gcc thinks this may not be initialized
This commit is contained in:
parent
73ca600bca
commit
20ba2eee6d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user