Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53981 - trunk/libs/graph_parallel/test
From: jewillco_at_[hidden]
Date: 2009-06-16 14:00:32


Author: jewillco
Date: 2009-06-16 14:00:31 EDT (Tue, 16 Jun 2009)
New Revision: 53981
URL: http://svn.boost.org/trac/boost/changeset/53981

Log:
Fixed warnings; refs #3134
Text files modified:
   trunk/libs/graph_parallel/test/distributed_adjacency_list_test.cpp | 6 +++---
   trunk/libs/graph_parallel/test/distributed_dfs_test.cpp | 2 ++
   2 files changed, 5 insertions(+), 3 deletions(-)

Modified: trunk/libs/graph_parallel/test/distributed_adjacency_list_test.cpp
==============================================================================
--- trunk/libs/graph_parallel/test/distributed_adjacency_list_test.cpp (original)
+++ trunk/libs/graph_parallel/test/distributed_adjacency_list_test.cpp 2009-06-16 14:00:31 EDT (Tue, 16 Jun 2009)
@@ -198,7 +198,7 @@
       in_degree(*v, g3);
     }
 
- int added_edges = 0;
+ graph_traits<Graph3>::vertices_size_type added_edges = 0;
     if (num_vertices(g3) >= 2) {
       graph_traits<Graph3>::vertex_iterator vi = vertices(g3).first;
       graph_traits<Graph3>::vertex_descriptor u = *vi++;
@@ -239,7 +239,7 @@
     }
 
     synchronize(g3);
- assert(std::distance(edges(g3).first, edges(g3).second) == added_edges);
+ assert(std::distance(edges(g3).first, edges(g3).second) == (ptrdiff_t)added_edges);
     assert(num_edges(g3) == added_edges);
 
     // Verify the remote edges
@@ -250,7 +250,7 @@
       int prior_processor = (process_id(pg) + num_processes(pg) - 1)
         % num_processes(pg);
       const int n = 20;
- int vertices_in_prior = (n / num_processes(pg))
+ graph_traits<Graph3>::vertices_size_type vertices_in_prior = (n / num_processes(pg))
         + (n % num_processes(pg) > prior_processor? 1 : 0);
       if (in_degree(u, g3) != vertices_in_prior + 2) {
         std::cerr << "#" << process_id(pg) << ": " << in_degree(u, g3)

Modified: trunk/libs/graph_parallel/test/distributed_dfs_test.cpp
==============================================================================
--- trunk/libs/graph_parallel/test/distributed_dfs_test.cpp (original)
+++ trunk/libs/graph_parallel/test/distributed_dfs_test.cpp 2009-06-16 14:00:31 EDT (Tue, 16 Jun 2009)
@@ -139,8 +139,10 @@
      make_iterator_property_map(explore.begin(), get(vertex_index, g)),
      get(vertex_index, g));
 
+#if 0
   std::size_t correct_parents1[N] = {u, u, y, y, v, w};
   std::size_t correct_parents2[N] = {u, u, y, v, x, w};
+#endif
 
   for (std::size_t i = 0; i < N; ++i) {
     vertex_descriptor v = vertex(i, g);


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