diff --git a/tests/test_preconditionerfactory.cpp b/tests/test_preconditionerfactory.cpp index 0e57b58e3..3cbc0e831 100644 --- a/tests/test_preconditionerfactory.cpp +++ b/tests/test_preconditionerfactory.cpp @@ -289,7 +289,10 @@ testPrecRepeating(const Opm::PropertyTree& prm, const std::string& matrix_filena throw std::runtime_error("Could not read matrix file"); } using M = Dune::BCRSMatrix>; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" readMatrixMarket(reinterpret_cast(matrix), mfile); // Hack to avoid hassle +#pragma GCC diagnostic pop } Vector rhs; {