[PPL-devel] [GIT] ppl/ppl(master): Silenced a couple of gcc warnings.
Enea Zaffanella
zaffanella at cs.unipr.it
Sat Jul 9 18:33:13 CEST 2011
Module: ppl/ppl
Branch: master
Commit: d0e687c142a12f08873f953e16c32265536b67f2
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=d0e687c142a12f08873f953e16c32265536b67f2
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Sat Jul 9 18:32:45 2011 +0200
Silenced a couple of gcc warnings.
---
src/PIP_Tree.cc | 2 +-
src/Sparse_Row.cc | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/PIP_Tree.cc b/src/PIP_Tree.cc
index 35590cf..3aa76b8 100644
--- a/src/PIP_Tree.cc
+++ b/src/PIP_Tree.cc
@@ -134,7 +134,7 @@ merge_assign(Matrix& x, const Constraint_System& y,
Row& x_i = x[i];
Coefficient_traits::const_reference inhomogeneous_term
= y_i->inhomogeneous_term();
- Variables_Set::const_iterator pj = parameters.begin();
+ Variables_Set::const_iterator pj = param_begin;
dimension_type j = 1;
Row::iterator itr = x_i.end();
if (inhomogeneous_term != 0)
diff --git a/src/Sparse_Row.cc b/src/Sparse_Row.cc
index 157e992..2760e53 100644
--- a/src/Sparse_Row.cc
+++ b/src/Sparse_Row.cc
@@ -440,7 +440,9 @@ PPL::Sparse_Row::linear_combine(const Sparse_Row& y,
// invalidates all iterators.
while (i != end()) {
if (*i == 0) {
+#ifndef NDEBUG
const dimension_type old_index = i.index();
+#endif
i = reset(i);
PPL_ASSERT(find(old_index) == end());
} else
More information about the PPL-devel
mailing list