From c5fcbb8f3dafd352efa6ca07f0576d2c9a2ddfef Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 27 Jun 2022 14:54:57 +0200 Subject: [PATCH] changed: use gcc pragma's to suppress strict-aliasing warning we don't care --- tests/test_preconditionerfactory.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; {