[Dune] [Dune-Commit] dune-common r6631 - trunk/dune/common/test

Oliver Sander sander at mi.fu-berlin.de
Thu Apr 19 08:42:10 CEST 2012


Thanks, Christoph.  Again, I really appreciate your work.
best,
Oliver

Am 18.04.2012 23:43, schrieb gruenich at dune-project.org:
> Author: gruenich
> Date: 2012-04-18 23:43:58 +0200 (Wed, 18 Apr 2012)
> New Revision: 6631
>
> Modified:
>     trunk/dune/common/test/bitsetvectortest.cc
>     trunk/dune/common/test/parametertreetest.cc
> Log:
> Changed some DUNE_USUED uses - introduced by r6607 - to other, appropriate ways of surpressing a
> warning.
>
>
> Modified: trunk/dune/common/test/bitsetvectortest.cc
> ===================================================================
> --- trunk/dune/common/test/bitsetvectortest.cc	2012-04-17 15:16:58 UTC (rev 6630)
> +++ trunk/dune/common/test/bitsetvectortest.cc	2012-04-18 21:43:58 UTC (rev 6631)
> @@ -170,9 +170,11 @@
>       testConstContainer(cbbf);
>
>       // iterator interface
> -    ConstReferenceOp<BBF>  cop DUNE_UNUSED;
> +#ifndef NDEBUG
> +    ConstReferenceOp<BBF>  cop;
>       assert(testIterator(bbf, cop) == 0);
>       assert(testIterator(cbbf, cop) == 0);
> +#endif
>   }
>
>   int main()
>
> Modified: trunk/dune/common/test/parametertreetest.cc
> ===================================================================
> --- trunk/dune/common/test/parametertreetest.cc	2012-04-17 15:16:58 UTC (rev 6630)
> +++ trunk/dune/common/test/parametertreetest.cc	2012-04-18 21:43:58 UTC (rev 6631)
> @@ -18,10 +18,12 @@
>       // try reading array like structures
>       std::vector<unsigned int>
>           array1 = p.template get<  std::vector<unsigned int>  >("array");
> +#ifndef NDEBUG
>       Dune::array<unsigned int, 8>
> -        array2 DUNE_UNUSED = p.template get<  Dune::array<unsigned int, 8>  >("array");
> +        array2 = p.template get<  Dune::array<unsigned int, 8>  >("array");
>       Dune::FieldVector<unsigned int, 8>
> -        array3 DUNE_UNUSED = p.template get<  Dune::FieldVector<unsigned int, 8>  >("array");
> +        array3 = p.template get<  Dune::FieldVector<unsigned int, 8>  >("array");
> +#endif
>       assert(array1.size() == 8);
>       std::cout<<  "array =";
>       for (unsigned int i=0; i<8; i++)
>
>
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit




More information about the Dune mailing list