Skip to content
Snippets Groups Projects
Commit a4e5c428 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[fmatrixtest] Fix an annoying set-but-unused-variable warning.

parent 17985925
Branches
Tags
1 merge request!357[fmatrixtest] Fix an annoying set-but-unused-variable warning.
Pipeline #
......@@ -19,6 +19,7 @@
#include <dune/common/fmatrix.hh>
#include <dune/common/rangeutilities.hh>
#include <dune/common/simd.hh>
#include <dune/common/unused.hh>
#include <dune/common/vc.hh>
#include "checkmatrixinterface.hh"
......@@ -303,7 +304,7 @@ void test_matrix()
if (tmp.infinity_norm() > 1e-12)
DUNE_THROW(FMatrixError, "Return value of Operator*= incorrect!");
}
FM A3 = (A2 *= 3); // A2 == A3 == 6*A
FM DUNE_UNUSED A3 = (A2 *= 3); // A2 == A3 == 6*A
FM A4 = (A2 /= 2); // A2 == A4 == 3*A;
FM A5 = A;
A5 *= 3; // A5 == 3*A
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment