Silence unused argument warning for DynamicEvaluation.

This commit is contained in:
Atgeirr Flø Rasmussen 2019-07-05 10:09:23 +02:00
parent 45207e1e7a
commit a9e1551e79
2 changed files with 2 additions and 2 deletions

View File

@ -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 <class RhsValueType>
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.");
}

View File

@ -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 <class RhsValueType>
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.");
}