mark unused parameters as OPM_UNUSED

This commit is contained in:
Arne Morten Kvarving 2019-06-26 09:39:34 +02:00
parent 02f7359570
commit 51bf76a061
15 changed files with 15 additions and 15 deletions

View File

@ -374,7 +374,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -183,7 +183,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -174,7 +174,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -183,7 +183,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -184,7 +184,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -185,7 +185,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -175,7 +175,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -176,7 +176,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -177,7 +177,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -178,7 +178,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -179,7 +179,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -180,7 +180,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -181,7 +181,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -182,7 +182,7 @@ public:
} }
template <class RhsValueType> template <class RhsValueType>
static Evaluation createVariable(const Evaluation& x, const RhsValueType& value, int varPos) static Evaluation createVariable(const Evaluation& x OPM_UNUSED, const RhsValueType& value, int varPos)
{ {
// copy function value and set all derivatives to 0, except for the variable // copy function value and set all derivatives to 0, except for the variable
// which is represented by the value (which is set to 1.0) // which is represented by the value (which is set to 1.0)

View File

@ -50,7 +50,7 @@ public:
* This solid energy law simply returns 0. * This solid energy law simply returns 0.
*/ */
template <class FluidState, class Evaluation = typename FluidState::Scalar> template <class FluidState, class Evaluation = typename FluidState::Scalar>
static Evaluation solidInternalEnergy(const Params& params, const FluidState& fluidState) static Evaluation solidInternalEnergy(const Params& params OPM_UNUSED, const FluidState& fluidState OPM_UNUSED)
{ return 0.0; } { return 0.0; }
}; };
} // namespace Opm } // namespace Opm