diff --git a/opm/core/props/satfunc/SatFuncSimple.cpp b/opm/core/props/satfunc/SatFuncSimple.cpp index 940f12de..83a377ff 100644 --- a/opm/core/props/satfunc/SatFuncSimple.cpp +++ b/opm/core/props/satfunc/SatFuncSimple.cpp @@ -36,7 +36,7 @@ namespace Opm void SatFuncBase >::initializeTableType(NonuniformTableLinear & table, const std::vector& arg, const std::vector& value, - const int samples) + const int /*samples*/) { table = NonuniformTableLinear(arg, value); } @@ -84,7 +84,7 @@ namespace Opm } } - double EPSTransforms::Transform::scaleSatDeriv(double s, double s_r, double s_cr, double s_max) const + double EPSTransforms::Transform::scaleSatDeriv(double s, double /*s_r*/, double /*s_cr*/, double /*s_max*/) const { if (doNotScale) { return 1.0; diff --git a/opm/core/utility/Spline.hpp b/opm/core/utility/Spline.hpp index 4442b77b..835caf23 100644 --- a/opm/core/utility/Spline.hpp +++ b/opm/core/utility/Spline.hpp @@ -945,6 +945,7 @@ public: int r = 3; if (x0 < xMin()) { + static_cast(extrapolate); assert(extrapolate); Scalar m = evalDerivative_(xMin(), /*segmentIdx=*/0); if (std::abs(m) < 1e-20) @@ -1575,16 +1576,16 @@ protected: { return 2*3*t - 2; } // third derivative of the hermite basis functions - Scalar h00_prime3_(Scalar t) const + Scalar h00_prime3_(Scalar /*t*/) const { return 2*3*2; } - Scalar h10_prime3_(Scalar t) const + Scalar h10_prime3_(Scalar /*t*/) const { return 2*3; } - Scalar h01_prime3_(Scalar t) const + Scalar h01_prime3_(Scalar /*t*/) const { return -2*3*2; } - Scalar h11_prime3_(Scalar t) const + Scalar h11_prime3_(Scalar /*t*/) const { return 2*3; } // returns the monotonicality of an interval of a spline segment