Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77528 - trunk/libs/graph/test
From: jewillco_at_[hidden]
Date: 2012-03-25 00:59:23


Author: jewillco
Date: 2012-03-25 00:59:23 EDT (Sun, 25 Mar 2012)
New Revision: 77528
URL: http://svn.boost.org/trac/boost/changeset/77528

Log:
Fixed warnings
Text files modified:
   trunk/libs/graph/test/csr_graph_test.cpp | 5 ++---
   1 files changed, 2 insertions(+), 3 deletions(-)

Modified: trunk/libs/graph/test/csr_graph_test.cpp
==============================================================================
--- trunk/libs/graph/test/csr_graph_test.cpp (original)
+++ trunk/libs/graph/test/csr_graph_test.cpp 2012-03-25 00:59:23 EDT (Sun, 25 Mar 2012)
@@ -280,14 +280,13 @@
 
   // Check edge_from_index (and implicitly the edge_index property map) for
   // each edge in g2
- std::size_t last_src = 0, last_tgt = 0;
+ std::size_t last_src = 0;
   for (boost::tie(ei, ei_end) = edges(g2); ei != ei_end; ++ei) {
     BOOST_CHECK(edge_from_index(get(boost::edge_index, g2, *ei), g2) == *ei);
     std::size_t src = get(boost::vertex_index, g2, source(*ei, g2));
- std::size_t tgt = get(boost::vertex_index, g2, target(*ei, g2));
+ (void)(std::size_t)get(boost::vertex_index, g2, target(*ei, g2));
     BOOST_CHECK(src >= last_src);
     last_src = src;
- last_tgt = tgt;
   }
 
   // Check out edge iteration and vertex iteration for sortedness


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk