test/edge_set_test.cc
branch1.2
changeset 1161 08712a8c3afe
parent 956 141f9c0db4a3
parent 1157 761fe0846f49
child 1259 8b2d4e5d96e4
     1.1 --- a/test/edge_set_test.cc	Wed Sep 12 17:29:50 2012 +0200
     1.2 +++ b/test/edge_set_test.cc	Thu Sep 13 12:05:34 2012 +0200
     1.3 @@ -44,10 +44,12 @@
     1.4      n2 = digraph.addNode();
     1.5  
     1.6    Digraph::Arc ga1 = digraph.addArc(n1, n2);
     1.7 +  ignore_unused_variable_warning(ga1);
     1.8  
     1.9    ArcSet arc_set(digraph);
    1.10  
    1.11    Digraph::Arc ga2 = digraph.addArc(n2, n1);
    1.12 +  ignore_unused_variable_warning(ga2);
    1.13  
    1.14    checkGraphNodeList(arc_set, 2);
    1.15    checkGraphArcList(arc_set, 0);
    1.16 @@ -75,6 +77,8 @@
    1.17    ArcSet::Arc a2 = arc_set.addArc(n2, n1),
    1.18      a3 = arc_set.addArc(n2, n3),
    1.19      a4 = arc_set.addArc(n2, n3);
    1.20 +  ignore_unused_variable_warning(a2,a3,a4);
    1.21 +
    1.22    checkGraphNodeList(arc_set, 3);
    1.23    checkGraphArcList(arc_set, 4);
    1.24  
    1.25 @@ -110,10 +114,12 @@
    1.26      n2 = digraph.addNode();
    1.27  
    1.28    Digraph::Arc ga1 = digraph.addArc(n1, n2);
    1.29 +  ignore_unused_variable_warning(ga1);
    1.30  
    1.31    ArcSet arc_set(digraph);
    1.32  
    1.33    Digraph::Arc ga2 = digraph.addArc(n2, n1);
    1.34 +  ignore_unused_variable_warning(ga2);
    1.35  
    1.36    checkGraphNodeList(arc_set, 2);
    1.37    checkGraphArcList(arc_set, 0);
    1.38 @@ -141,6 +147,8 @@
    1.39    ArcSet::Arc a2 = arc_set.addArc(n2, n1),
    1.40      a3 = arc_set.addArc(n2, n3),
    1.41      a4 = arc_set.addArc(n2, n3);
    1.42 +  ignore_unused_variable_warning(a2,a3,a4);
    1.43 +
    1.44    checkGraphNodeList(arc_set, 3);
    1.45    checkGraphArcList(arc_set, 4);
    1.46  
    1.47 @@ -190,10 +198,12 @@
    1.48      n2 = digraph.addNode();
    1.49  
    1.50    Digraph::Arc ga1 = digraph.addArc(n1, n2);
    1.51 +  ignore_unused_variable_warning(ga1);
    1.52  
    1.53    EdgeSet edge_set(digraph);
    1.54  
    1.55    Digraph::Arc ga2 = digraph.addArc(n2, n1);
    1.56 +  ignore_unused_variable_warning(ga2);
    1.57  
    1.58    checkGraphNodeList(edge_set, 2);
    1.59    checkGraphArcList(edge_set, 0);
    1.60 @@ -230,6 +240,8 @@
    1.61    EdgeSet::Edge e2 = edge_set.addEdge(n2, n1),
    1.62      e3 = edge_set.addEdge(n2, n3),
    1.63      e4 = edge_set.addEdge(n2, n3);
    1.64 +  ignore_unused_variable_warning(e2,e3,e4);
    1.65 +
    1.66    checkGraphNodeList(edge_set, 3);
    1.67    checkGraphEdgeList(edge_set, 4);
    1.68  
    1.69 @@ -274,10 +286,12 @@
    1.70      n2 = digraph.addNode();
    1.71  
    1.72    Digraph::Arc ga1 = digraph.addArc(n1, n2);
    1.73 +  ignore_unused_variable_warning(ga1);
    1.74  
    1.75    EdgeSet edge_set(digraph);
    1.76  
    1.77    Digraph::Arc ga2 = digraph.addArc(n2, n1);
    1.78 +  ignore_unused_variable_warning(ga2);
    1.79  
    1.80    checkGraphNodeList(edge_set, 2);
    1.81    checkGraphArcList(edge_set, 0);
    1.82 @@ -314,6 +328,8 @@
    1.83    EdgeSet::Edge e2 = edge_set.addEdge(n2, n1),
    1.84      e3 = edge_set.addEdge(n2, n3),
    1.85      e4 = edge_set.addEdge(n2, n3);
    1.86 +  ignore_unused_variable_warning(e2,e3,e4);
    1.87 +
    1.88    checkGraphNodeList(edge_set, 3);
    1.89    checkGraphEdgeList(edge_set, 4);
    1.90