Skip to content
Snippets Groups Projects
Commit 69770655 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Changed some DUNE_USUED uses - introduced by r6607 - to other, appropriate ways of surpressing a

warning.

[[Imported from SVN: r6631]]
parent 667d2ad7
No related branches found
No related tags found
No related merge requests found
......@@ -172,9 +172,11 @@ void doTest() {
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()
......
......@@ -20,10 +20,12 @@ void testparam(const P & p)
// 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++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment