diff -r 4bb9e72e1a41 -r 7fdaa05a69a1 test/maps_test.cc --- a/test/maps_test.cc Wed Sep 12 17:25:48 2012 +0200 +++ b/test/maps_test.cc Thu Sep 13 11:56:19 2012 +0200 @@ -103,6 +103,7 @@ checkConcept, NullMap >(); NullMap map1; NullMap map2 = map1; + ignore_unused_variable_warning(map2); map1 = nullMap(); } @@ -113,11 +114,15 @@ ConstMap map1; ConstMap map2 = B(); ConstMap map3 = map1; + ignore_unused_variable_warning(map2,map3); + map1 = constMap(B()); map1 = constMap(); map1.setAll(B()); ConstMap map4(C(1)); ConstMap map5 = map4; + ignore_unused_variable_warning(map5); + map4 = constMap(C(2)); map4.setAll(C(3)); @@ -138,6 +143,8 @@ checkConcept, IdentityMap >(); IdentityMap map1; IdentityMap map2 = map1; + ignore_unused_variable_warning(map2); + map1 = identityMap(); checkConcept, IdentityMap >(); @@ -197,7 +204,9 @@ typedef ComposeMap > CompMap; checkConcept, CompMap>(); CompMap map1 = CompMap(DoubleMap(),ReadMap()); + ignore_unused_variable_warning(map1); CompMap map2 = composeMap(DoubleMap(), ReadMap()); + ignore_unused_variable_warning(map2); SparseMap m1(false); m1[3.14] = true; RangeMap m2(2); m2[0] = 3.0; m2[1] = 3.14; @@ -210,7 +219,9 @@ typedef CombineMap > CombMap; checkConcept, CombMap>(); CombMap map1 = CombMap(DoubleMap(), DoubleMap()); + ignore_unused_variable_warning(map1); CombMap map2 = combineMap(DoubleMap(), DoubleMap(), std::plus()); + ignore_unused_variable_warning(map2); check(combineMap(constMap(), identityMap(), &binc)[B()] == 3, "Something is wrong with CombineMap"); @@ -222,11 +233,15 @@ checkConcept, FunctorToMap >(); FunctorToMap map1; FunctorToMap map2 = FunctorToMap(F()); + ignore_unused_variable_warning(map2); + B b = functorToMap(F())[A()]; + ignore_unused_variable_warning(b); checkConcept, MapToFunctor > >(); MapToFunctor > map = MapToFunctor >(ReadMap()); + ignore_unused_variable_warning(map); check(functorToMap(&func)[A()] == 3, "Something is wrong with FunctorToMap"); @@ -244,7 +259,10 @@ checkConcept, ConvertMap, double> >(); ConvertMap, int> map1(rangeMap(1, true)); + ignore_unused_variable_warning(map1); ConvertMap, int> map2 = convertMap(rangeMap(2, false)); + ignore_unused_variable_warning(map2); + } // ForkMap