diff --git a/dumux/flux/box/fickslaw.hh b/dumux/flux/box/fickslaw.hh index 0c0d46143cf5fad5e54707defce33d6469272e2e..a7c93c5bd16429964ee83c1c7118b51d9a4a4b72 100644 --- a/dumux/flux/box/fickslaw.hh +++ b/dumux/flux/box/fickslaw.hh @@ -176,7 +176,7 @@ private: } static std::pair<Scalar, Scalar> - diffusionCoefficientsAtInterface_(const int phaseIdx, const int compIdx, + diffusionCoefficientsAtInterface_([[maybe_unused]] const int phaseIdx, const int compIdx, const VolumeVariables& insideVV, const VolumeVariables& outsideVV) { if constexpr (!FluidSystem::isTracerFluidSystem()) diff --git a/dumux/porousmediumflow/fluxvariables.hh b/dumux/porousmediumflow/fluxvariables.hh index 58d5f029ae6187bd6547df128e544e412bba074d..ceab3a70b429597e9daf73810ec9b15023901518 100644 --- a/dumux/porousmediumflow/fluxvariables.hh +++ b/dumux/porousmediumflow/fluxvariables.hh @@ -90,7 +90,7 @@ public: * \brief Returns the advective flux computed by the respective law. */ template<typename FunctionType> - Scalar advectiveFlux(const int phaseIdx, const FunctionType& upwindTerm) const + Scalar advectiveFlux([[maybe_unused]] const int phaseIdx, [[maybe_unused]] const FunctionType& upwindTerm) const { if constexpr (enableAdvection) { @@ -117,7 +117,7 @@ public: /*! * \brief Returns the diffusive fluxes computed by the respective law. */ - Dune::FieldVector<Scalar, numComponents> molecularDiffusionFlux(const int phaseIdx) const + Dune::FieldVector<Scalar, numComponents> molecularDiffusionFlux([[maybe_unused]] const int phaseIdx) const { if constexpr (enableMolecularDiffusion) return MolecularDiffusionType::flux(this->problem(), @@ -153,7 +153,7 @@ public: * \brief Returns the conductive flux computed by the respective law. * \note This overload is used in models considering local thermal nonequilibrium */ - Scalar heatConductionFlux(int phaseIdx) const + Scalar heatConductionFlux([[maybe_unused]] const int phaseIdx) const { if constexpr (enableEnergyBalance) return HeatConductionType::flux(this->problem(), diff --git a/dumux/porousmediumflow/fluxvariablescachefiller.hh b/dumux/porousmediumflow/fluxvariablescachefiller.hh index 11e9b1d6de5886b7cd5dbb1b02f9451a357e36ca..cad893324bd38f6edca3641e6be72854b18aa280 100644 --- a/dumux/porousmediumflow/fluxvariablescachefiller.hh +++ b/dumux/porousmediumflow/fluxvariablescachefiller.hh @@ -525,7 +525,7 @@ private: //! Solves the local systems and stores the result in the handles template< class InteractionVolume, class DataHandle> - void prepareDataHandle_(InteractionVolume& iv, DataHandle& handle, bool forceUpdate) + void prepareDataHandle_([[maybe_unused]] InteractionVolume& iv, [[maybe_unused]] DataHandle& handle, [[maybe_unused]] bool forceUpdate) { // (maybe) solve system subject to intrinsic permeability if constexpr (advectionEnabled)