aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2012-12-16 20:21:28 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2012-12-16 20:21:28 +0100
commit925a5b7d07ce9a457681618f8c319e71b719001d (patch)
tree8d0bebeb36166ae0cb85c42348477b73b21da4ac /Eigen/src
parent6c8cf15c06bbcfc9492a83d05d74d3039ff9976e (diff)
Fix bug #535: unused variable warnings
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Cholesky/LDLT.h3
-rw-r--r--Eigen/src/SparseCore/SparseSelfAdjointView.h1
-rw-r--r--Eigen/src/SparseCore/SparseVector.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Cholesky/LDLT.h b/Eigen/src/Cholesky/LDLT.h
index 74c7d5546..219a0e8b9 100644
--- a/Eigen/src/Cholesky/LDLT.h
+++ b/Eigen/src/Cholesky/LDLT.h
@@ -542,8 +542,7 @@ template<typename Derived>
bool LDLT<MatrixType,_UpLo>::solveInPlace(MatrixBase<Derived> &bAndX) const
{
eigen_assert(m_isInitialized && "LDLT is not initialized.");
- const Index size = m_matrix.rows();
- eigen_assert(size == bAndX.rows());
+ eigen_assert(m_matrix.rows() == bAndX.rows());
bAndX = this->solve(bAndX);
diff --git a/Eigen/src/SparseCore/SparseSelfAdjointView.h b/Eigen/src/SparseCore/SparseSelfAdjointView.h
index 55ec69886..c10853791 100644
--- a/Eigen/src/SparseCore/SparseSelfAdjointView.h
+++ b/Eigen/src/SparseCore/SparseSelfAdjointView.h
@@ -209,6 +209,7 @@ class SparseSelfAdjointTimeDenseProduct
template<typename Dest> void scaleAndAddTo(Dest& dest, const Scalar& alpha) const
{
+ EIGEN_ONLY_USED_FOR_DEBUG(alpha);
// TODO use alpha
eigen_assert(alpha==Scalar(1) && "alpha != 1 is not implemented yet, sorry");
typedef typename internal::remove_all<Lhs>::type _Lhs;
diff --git a/Eigen/src/SparseCore/SparseVector.h b/Eigen/src/SparseCore/SparseVector.h
index a6a92d8aa..9f56a9bf5 100644
--- a/Eigen/src/SparseCore/SparseVector.h
+++ b/Eigen/src/SparseCore/SparseVector.h
@@ -202,7 +202,7 @@ class SparseVector
}
inline SparseVector(const SparseVector& other)
- : m_size(0)
+ : SparseBase(other), m_size(0)
{
*this = other.derived();
}