diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-06-09 09:11:12 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-06-09 09:11:12 +0200 |
commit | 9a2447b0c95bb62bd3e5ae68bf14d2c5e66a18cf (patch) | |
tree | 40712813d830e39c1e8e5b32be7c46abf4c90695 /test/sparse_vector.cpp | |
parent | cd8b996f99de67035a0504cbaf0a627fb68f0f1d (diff) |
Fix shadow warnings triggered by clang
Diffstat (limited to 'test/sparse_vector.cpp')
-rw-r--r-- | test/sparse_vector.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/sparse_vector.cpp b/test/sparse_vector.cpp index 5dc421976..d3975b99b 100644 --- a/test/sparse_vector.cpp +++ b/test/sparse_vector.cpp @@ -55,16 +55,16 @@ template<typename Scalar,typename Index> void sparse_vector(int rows, int cols) // test coeffRef with reallocation { - SparseVectorType v1(rows); - DenseVector v2 = DenseVector::Zero(rows); + SparseVectorType v4(rows); + DenseVector v5 = DenseVector::Zero(rows); for(int k=0; k<rows; ++k) { int i = internal::random<int>(0,rows-1); Scalar v = internal::random<Scalar>(); - v1.coeffRef(i) += v; - v2.coeffRef(i) += v; + v4.coeffRef(i) += v; + v5.coeffRef(i) += v; } - VERIFY_IS_APPROX(v1,v2); + VERIFY_IS_APPROX(v4,v5); } v1.coeffRef(nonzerocoords[0]) = Scalar(5); |