Further GCC 4.7 compiler warning fixes (#453)
authorAlpar Juttner <alpar@cs.elte.hu>
Wed, 28 Nov 2012 11:58:00 +0100
changeset 1174a26b90a17c81
parent 1173 d216e1c8b3fa
child 1175 1fe3b4ad8caa
child 1176 36fa2fee7144
child 1259 8b2d4e5d96e4
Further GCC 4.7 compiler warning fixes (#453)
test/bellman_ford_test.cc
     1.1 --- a/test/bellman_ford_test.cc	Wed Nov 28 11:54:43 2012 +0100
     1.2 +++ b/test/bellman_ford_test.cc	Wed Nov 28 11:58:00 2012 +0100
     1.3 @@ -65,8 +65,10 @@
     1.4    Node s, t, n;
     1.5    Arc e;
     1.6    Value l;
     1.7 +  ignore_unused_variable_warning(l);
     1.8    int k=3;
     1.9    bool b;
    1.10 +  ignore_unused_variable_warning(b);
    1.11    BF::DistMap d(gr);
    1.12    BF::PredMap p(gr);
    1.13    LengthMap length;
    1.14 @@ -147,6 +149,8 @@
    1.15  
    1.16    Digraph g;
    1.17    bool b;
    1.18 +  ignore_unused_variable_warning(b);
    1.19 +
    1.20    bellmanFord(g,LengthMap()).run(Node());
    1.21    b = bellmanFord(g,LengthMap()).run(Node(),Node());
    1.22    bellmanFord(g,LengthMap())