1.1 --- a/test/maps_test.cc Wed Sep 12 17:34:01 2012 +0200
1.2 +++ b/test/maps_test.cc Thu Sep 13 12:13:19 2012 +0200
1.3 @@ -103,6 +103,7 @@
1.4 checkConcept<ReadWriteMap<A,B>, NullMap<A,B> >();
1.5 NullMap<A,B> map1;
1.6 NullMap<A,B> map2 = map1;
1.7 + ignore_unused_variable_warning(map2);
1.8 map1 = nullMap<A,B>();
1.9 }
1.10
1.11 @@ -113,11 +114,15 @@
1.12 ConstMap<A,B> map1;
1.13 ConstMap<A,B> map2 = B();
1.14 ConstMap<A,B> map3 = map1;
1.15 + ignore_unused_variable_warning(map2,map3);
1.16 +
1.17 map1 = constMap<A>(B());
1.18 map1 = constMap<A,B>();
1.19 map1.setAll(B());
1.20 ConstMap<A,C> map4(C(1));
1.21 ConstMap<A,C> map5 = map4;
1.22 + ignore_unused_variable_warning(map5);
1.23 +
1.24 map4 = constMap<A>(C(2));
1.25 map4.setAll(C(3));
1.26
1.27 @@ -138,6 +143,8 @@
1.28 checkConcept<ReadMap<A,A>, IdentityMap<A> >();
1.29 IdentityMap<A> map1;
1.30 IdentityMap<A> map2 = map1;
1.31 + ignore_unused_variable_warning(map2);
1.32 +
1.33 map1 = identityMap<A>();
1.34
1.35 checkConcept<ReadMap<double,double>, IdentityMap<double> >();
1.36 @@ -197,7 +204,9 @@
1.37 typedef ComposeMap<DoubleMap, ReadMap<B,A> > CompMap;
1.38 checkConcept<ReadMap<B,double>, CompMap>();
1.39 CompMap map1 = CompMap(DoubleMap(),ReadMap<B,A>());
1.40 + ignore_unused_variable_warning(map1);
1.41 CompMap map2 = composeMap(DoubleMap(), ReadMap<B,A>());
1.42 + ignore_unused_variable_warning(map2);
1.43
1.44 SparseMap<double, bool> m1(false); m1[3.14] = true;
1.45 RangeMap<double> m2(2); m2[0] = 3.0; m2[1] = 3.14;
1.46 @@ -210,7 +219,9 @@
1.47 typedef CombineMap<DoubleMap, DoubleMap, std::plus<double> > CombMap;
1.48 checkConcept<ReadMap<A,double>, CombMap>();
1.49 CombMap map1 = CombMap(DoubleMap(), DoubleMap());
1.50 + ignore_unused_variable_warning(map1);
1.51 CombMap map2 = combineMap(DoubleMap(), DoubleMap(), std::plus<double>());
1.52 + ignore_unused_variable_warning(map2);
1.53
1.54 check(combineMap(constMap<B,int,2>(), identityMap<B>(), &binc)[B()] == 3,
1.55 "Something is wrong with CombineMap");
1.56 @@ -222,11 +233,15 @@
1.57 checkConcept<ReadMap<A,B>, FunctorToMap<F> >();
1.58 FunctorToMap<F> map1;
1.59 FunctorToMap<F> map2 = FunctorToMap<F>(F());
1.60 + ignore_unused_variable_warning(map2);
1.61 +
1.62 B b = functorToMap(F())[A()];
1.63 + ignore_unused_variable_warning(b);
1.64
1.65 checkConcept<ReadMap<A,B>, MapToFunctor<ReadMap<A,B> > >();
1.66 MapToFunctor<ReadMap<A,B> > map =
1.67 MapToFunctor<ReadMap<A,B> >(ReadMap<A,B>());
1.68 + ignore_unused_variable_warning(map);
1.69
1.70 check(functorToMap(&func)[A()] == 3,
1.71 "Something is wrong with FunctorToMap");
1.72 @@ -244,7 +259,10 @@
1.73 checkConcept<ReadMap<double,double>,
1.74 ConvertMap<ReadMap<double, int>, double> >();
1.75 ConvertMap<RangeMap<bool>, int> map1(rangeMap(1, true));
1.76 + ignore_unused_variable_warning(map1);
1.77 ConvertMap<RangeMap<bool>, int> map2 = convertMap<int>(rangeMap(2, false));
1.78 + ignore_unused_variable_warning(map2);
1.79 +
1.80 }
1.81
1.82 // ForkMap