mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-13 08:31:48 +08:00
gcc thinks this may not be initialized
This commit is contained in:
parent
f98992725c
commit
6111dce0e8
@ -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