mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3961 from akva2/use_pragma_suppress_diagnostic
changed: use gcc pragma's to suppress strict-aliasing warning
This commit is contained in:
commit
28f08e5e68
@ -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<Dune::FieldMatrix<double, bz, bz>>;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
readMatrixMarket(reinterpret_cast<M&>(matrix), mfile); // Hack to avoid hassle
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
Vector rhs;
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user