Skip to content

Commit

Permalink
Merge pull request #605 from akva2/janitoring
Browse files Browse the repository at this point in the history
mark conditionally used parameters as maybe_unused
  • Loading branch information
akva2 authored Apr 21, 2020
2 parents b0712b2 + 2048c26 commit d924d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions opm/models/blackoil/blackoilbrinemodules.hh
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ public:
priVars[saltConcentrationIdx] = fluidState.saltConcentration();
}

static std::string primaryVarName(unsigned pvIdx)
static std::string primaryVarName([[maybe_unused]] unsigned pvIdx)
{
assert(primaryVarApplies(pvIdx));

return "saltConcentration";
}

static Scalar primaryVarWeight(unsigned pvIdx OPM_OPTIM_UNUSED)
static Scalar primaryVarWeight([[maybe_unused]] unsigned pvIdx)
{
assert(primaryVarApplies(pvIdx));

Expand All @@ -186,14 +186,14 @@ public:
return eqIdx == contiBrineEqIdx;
}

static std::string eqName(unsigned eqIdx)
static std::string eqName([[maybe_unused]] unsigned eqIdx)
{
assert(eqApplies(eqIdx));

return "conti^brine";
}

static Scalar eqWeight(unsigned eqIdx OPM_OPTIM_UNUSED)
static Scalar eqWeight([[maybe_unused]] unsigned eqIdx)
{
assert(eqApplies(eqIdx));

Expand Down
4 changes: 2 additions & 2 deletions opm/models/blackoil/blackoilonephaseindices.hh
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ struct BlackOilOnePhaseIndices
//////////////////////

//! \brief returns the index of "active" component
static unsigned canonicalToActiveComponentIndex(unsigned compIdx OPM_UNUSED)
static unsigned canonicalToActiveComponentIndex(unsigned /*compIdx*/)
{
return 0;
}

static unsigned activeToCanonicalComponentIndex(unsigned compIdx)
static unsigned activeToCanonicalComponentIndex([[maybe_unused]] unsigned compIdx)
{
// assumes canonical oil = 0, water = 1, gas = 2;
assert(compIdx == 0);
Expand Down

0 comments on commit d924d4f

Please sign in to comment.