From a9e1551e79906c174550c26385fac737b19ffad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Fri, 5 Jul 2019 10:09:23 +0200 Subject: [PATCH] Silence unused argument warning for DynamicEvaluation. --- bin/genEvalSpecializations.py | 2 +- opm/material/densead/DynamicEvaluation.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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."); }