spline: avoid bogous "might be used uninitialized" compiler warning on GCC

This commit is contained in:
Andreas Lauser committed 2013-11-10 17:55:41 +01:00
1 parent ae901534c3
commit 434a3a8dd5
1 file changed
+2 -1
+2 -1
View File
@@ -29,6 +29,7 @@
#include <ostream>
#include <vector>
#include <limits>
#include <tuple>
namespace Opm
@@ -901,7 +902,7 @@ public:
{
assert(applies(x0) && applies(x1));
Scalar tmpSol[3], sol;
Scalar tmpSol[3], sol = std::numeric_limits<Scalar>::quiet_NaN();
int nSol = 0;
int iFirst = segmentIdx_(x0);
int iLast = segmentIdx_(x1);