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

[cleanup] Mark unused variables in tests

parent b43f5a03
No related branches found
No related tags found
1 merge request!467Remove deprecated code
......@@ -25,8 +25,8 @@ TestSuite testFlatVectorForEach()
// mix up some types
FieldVector<double,3> f3;
FieldVector<double,1> f1;
[[maybe_unused]] FieldVector<double,3> f3;
[[maybe_unused]] FieldVector<double,1> f1;
DynamicVector<FieldVector<double,3>> d3;
......@@ -83,10 +83,10 @@ TestSuite testFlatMatrixForEachStatic()
{
TestSuite t;
FieldMatrix<double,3,3> F33;
FieldMatrix<double,3,1> F31;
FieldMatrix<double,1,3> F13;
FieldMatrix<double,1,1> F11;
[[maybe_unused]] FieldMatrix<double,3,3> F33;
[[maybe_unused]] FieldMatrix<double,3,1> F31;
[[maybe_unused]] FieldMatrix<double,1,3> F13;
[[maybe_unused]] FieldMatrix<double,1,1> F11;
BCRSMatrix<FieldMatrix<double,3,3>> B33;
BCRSMatrix<FieldMatrix<double,3,1>> B31;
......
......@@ -32,8 +32,8 @@ void test_matrix()
A.umv(v,f);
// matrix times scalar
auto r1 = A * 23.;
auto r2 = 42. * A;
[[maybe_unused]] auto r1 = A * 23.;
[[maybe_unused]] auto r2 = 42. * A;
// test norms
A.frobenius_norm();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment