diff --git a/bin/genEvalSpecializations.py b/bin/genEvalSpecializations.py index f135144e5..01493a66d 100755 --- a/bin/genEvalSpecializations.py +++ b/bin/genEvalSpecializations.py @@ -395,7 +395,7 @@ public: // "evaluate" a constant function (i.e. a function that does not depend on the set of // relevant variables, f(x) = c). template - static Evaluation createConstant(const RhsValueType& value) + static Evaluation createConstant(const RhsValueType& value OPM_UNUSED) { throw std::logic_error("Dynamically-sized evaluation objects require to specify the number of derivatives."); } diff --git a/opm/material/densead/DynamicEvaluation.hpp b/opm/material/densead/DynamicEvaluation.hpp index fbc5ca3e2..29c3451e3 100644 --- a/opm/material/densead/DynamicEvaluation.hpp +++ b/opm/material/densead/DynamicEvaluation.hpp @@ -212,7 +212,7 @@ public: // "evaluate" a constant function (i.e. a function that does not depend on the set of // relevant variables, f(x) = c). template - static Evaluation createConstant(const RhsValueType& value) + static Evaluation createConstant(const RhsValueType& value OPM_UNUSED) { throw std::logic_error("Dynamically-sized evaluation objects require to specify the number of derivatives."); }