Commit fbafea20 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Use [[maybe_unused]] instead of DUNE_UNUSED

parent fdc3c686
Pipeline #34609 passed with stage
in 22 minutes and 47 seconds
......@@ -21,7 +21,7 @@ static void test(Dune::GeometryType type)
FiniteElementCache cache;
using FiniteElement = typename FiniteElementCache::FiniteElementType;
DUNE_UNUSED const FiniteElement& finiteElement = cache.get(type);
[[maybe_unused]] const FiniteElement& finiteElement = cache.get(type);
}
int main() {
......
......@@ -55,7 +55,7 @@ void testLocalBasis(const LocalBasisVirtualInterface<T>* localBasis)
{
// call each method once to test that it's there
syntax_check<unsigned int>( localBasis->order() );
unsigned int size DUNE_UNUSED = localBasis->size();
[[maybe_unused]] unsigned int size = localBasis->size();
// evaluate the local basis at (0,...,0)
typename T::DomainType in(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment