Skip to content

Commit

Permalink
Merge pull request #305 from andlaus/fix_gcc8_warnings
Browse files Browse the repository at this point in the history
fix some GCC 8 warnings
  • Loading branch information
andlaus authored Sep 20, 2018
2 parents a445894 + 74ad87d commit c641097
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class CompositionFromFugacities
// Solve J*x = b
x = 0.0;
try { J.solve(x, b); }
catch (Dune::FMatrixError e)
catch (const Dune::FMatrixError& e)
{ throw Opm::NumericalIssue(e.what()); }

//std::cout << "original delta: " << x << "\n";
Expand Down
2 changes: 1 addition & 1 deletion opm/material/constraintsolvers/ImmiscibleFlash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class ImmiscibleFlash
deltaX = 0;

try { J.solve(deltaX, b); }
catch (Dune::FMatrixError e) {
catch (const Dune::FMatrixError& e) {
throw Opm::NumericalIssue(e.what());
}
Valgrind::CheckDefined(deltaX);
Expand Down

0 comments on commit c641097

Please sign in to comment.