Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78651 - in trunk/libs: graph/example graph_parallel/test
From: jewillco_at_[hidden]
Date: 2012-05-26 15:30:48


Author: jewillco
Date: 2012-05-26 15:30:47 EDT (Sat, 26 May 2012)
New Revision: 78651
URL: http://svn.boost.org/trac/boost/changeset/78651

Log:
Fixed warnings
Text files modified:
   trunk/libs/graph/example/implicit_graph.cpp | 1 -
   trunk/libs/graph_parallel/test/adjlist_build_test.cpp | 4 ++--
   2 files changed, 2 insertions(+), 3 deletions(-)

Modified: trunk/libs/graph/example/implicit_graph.cpp
==============================================================================
--- trunk/libs/graph/example/implicit_graph.cpp (original)
+++ trunk/libs/graph/example/implicit_graph.cpp 2012-05-26 15:30:47 EDT (Sat, 26 May 2012)
@@ -460,7 +460,6 @@
 
   // Create a small ring graph.
   ring_graph g(n);
- const_edge_weight_map m = get(edge_weight, g);
 
   // Print the outgoing edges of all the vertices. For n=5 this will print:
   //

Modified: trunk/libs/graph_parallel/test/adjlist_build_test.cpp
==============================================================================
--- trunk/libs/graph_parallel/test/adjlist_build_test.cpp (original)
+++ trunk/libs/graph_parallel/test/adjlist_build_test.cpp 2012-05-26 15:30:47 EDT (Sat, 26 May 2012)
@@ -89,7 +89,7 @@
       Graph::lazy_add_edge lazy
         = add_edge(vertex(first->first, g2), vertex(first->second, g2), g2);
 
- if (require_response_gen() % 100 < immediate_response_percent) {
+ if ((int)require_response_gen() % 100 < immediate_response_percent) {
         // Send out-of-band to require a response
         std::pair<graph_traits<Graph>::edge_descriptor, bool> result(lazy);
         BOOST_CHECK(source(result.first, g2) == vertex(first->first, g2));
@@ -179,7 +179,7 @@
       Graph::lazy_add_edge lazy
         = add_edge(vertex(first->first, g3), vertex(first->second, g3), g3);
 
- if (require_response_gen() % 100 < immediate_response_percent) {
+ if ((int)require_response_gen() % 100 < immediate_response_percent) {
         // Send out-of-band to require a response
         std::pair<graph_traits<Graph>::edge_descriptor, bool> result(lazy);
         BOOST_CHECK(source(result.first, g3) == vertex(first->first, g3));


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