Merge pull request #348 from atgeirr/silence-warning

Silence unused argument warning for DynamicEvaluation.
This commit is contained in:
Atgeirr Flø Rasmussen 2019-07-05 11:15:47 +02:00 committed by GitHub
commit d0af89eca1
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 // "evaluate" a constant function (i.e. a function that does not depend on the set of
// relevant variables, f(x) = c). // relevant variables, f(x) = c).
template <class RhsValueType> 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."); 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 // "evaluate" a constant function (i.e. a function that does not depend on the set of
// relevant variables, f(x) = c). // relevant variables, f(x) = c).
template <class RhsValueType> 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."); throw std::logic_error("Dynamically-sized evaluation objects require to specify the number of derivatives.");
} }