aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-02-14 15:41:00 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-02-14 15:41:00 +0100
commita1d7e9051e04c549659f4ad34c66f434bc19f1ea (patch)
treee5a4b0b6e92bfd4b1fe2e55e710fb583a9e8c964
parent8e0a42350dce527627e656a258bfb22aef1001d5 (diff)
fix bug #184 (warning)
-rw-r--r--unsupported/Eigen/src/SparseExtra/UmfPackSupport.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/unsupported/Eigen/src/SparseExtra/UmfPackSupport.h b/unsupported/Eigen/src/SparseExtra/UmfPackSupport.h
index d884378d5..f132ad98f 100644
--- a/unsupported/Eigen/src/SparseExtra/UmfPackSupport.h
+++ b/unsupported/Eigen/src/SparseExtra/UmfPackSupport.h
@@ -248,14 +248,14 @@ template<typename _MatrixType, typename Rhs>
void* numeric = const_cast<void*>(dec().numeric());
- int errorCode = 0;
+ EIGEN_UNUSED int errorCode = 0;
for (int j=0; j<rhsCols; ++j)
- {
- errorCode = umfpack_solve(UMFPACK_A,
- dec().matrixLU()._outerIndexPtr(), dec().matrixLU()._innerIndexPtr(), dec().matrixLU()._valuePtr(),
- &dst.col(j).coeffRef(0), &rhs().const_cast_derived().col(j).coeffRef(0), numeric, 0, 0);
- eigen_assert(!errorCode && "UmfPack could not solve the system.");
- }
+ {
+ errorCode = umfpack_solve(UMFPACK_A,
+ dec().matrixLU()._outerIndexPtr(), dec().matrixLU()._innerIndexPtr(), dec().matrixLU()._valuePtr(),
+ &dst.col(j).coeffRef(0), &rhs().const_cast_derived().col(j).coeffRef(0), numeric, 0, 0);
+ eigen_assert(!errorCode && "UmfPack could not solve the system.");
+ }
}
};