mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix various asan errors.
This commit is contained in:
@@ -309,6 +309,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy
|
||||
out << header << std::endl;
|
||||
out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n";
|
||||
int count = 0;
|
||||
EIGEN_UNUSED_VARIABLE(count);
|
||||
for (int j = 0; j < mat.outerSize(); ++j)
|
||||
for (typename SparseMatrixType::InnerIterator it(mat, j); it; ++it) {
|
||||
++count;
|
||||
|
||||
Reference in New Issue
Block a user