diff -r 939d747055cd -r 8d2e55fac752 test/maps_test.cc --- a/test/maps_test.cc Wed Sep 12 17:51:20 2012 +0200 +++ b/test/maps_test.cc Thu Sep 13 11:52:50 2012 +0200 @@ -80,6 +80,7 @@ checkConcept, NullMap >(); NullMap map1; NullMap map2 = map1; + ignore_unused_variable_warning(map2); map1 = nullMap(); } @@ -90,11 +91,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)); @@ -115,6 +120,8 @@ checkConcept, IdentityMap >(); IdentityMap map1; IdentityMap map2 = map1; + ignore_unused_variable_warning(map2); + map1 = identityMap(); checkConcept, IdentityMap >(); @@ -174,7 +181,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; @@ -187,7 +196,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"); @@ -199,11 +210,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"); @@ -221,7 +236,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