diff options
Diffstat (limited to 'Eigen/src/Sparse/AmbiVector.h')
-rw-r--r-- | Eigen/src/Sparse/AmbiVector.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/Sparse/AmbiVector.h b/Eigen/src/Sparse/AmbiVector.h index 2988999d6..6bb6ee3e4 100644 --- a/Eigen/src/Sparse/AmbiVector.h +++ b/Eigen/src/Sparse/AmbiVector.h @@ -303,6 +303,8 @@ class AmbiVector<_Scalar>::Iterator m_isDense = m_vector.m_mode==IsDense; if (m_isDense) { + m_currentEl = 0; // this is to avoid a compilation warning + m_cachedValue = 0; // this is to avoid a compilation warning m_cachedIndex = m_vector.m_start-1; ++(*this); } @@ -314,6 +316,7 @@ class AmbiVector<_Scalar>::Iterator m_currentEl = llElements[m_currentEl].next; if (m_currentEl<0) { + m_cachedValue = 0; // this is to avoid a compilation warning m_cachedIndex = -1; } else |