From eedfafe423f1b0103e80527d7fa453419a9776ca Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 26 Sep 2023 08:45:33 +0200 Subject: [PATCH] fixed: quell unused variable warning without OpenCL --- opm/simulators/linalg/ISTLSolverEbosBda.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opm/simulators/linalg/ISTLSolverEbosBda.hpp b/opm/simulators/linalg/ISTLSolverEbosBda.hpp index 3c73002f4..6eaff0218 100644 --- a/opm/simulators/linalg/ISTLSolverEbosBda.hpp +++ b/opm/simulators/linalg/ISTLSolverEbosBda.hpp @@ -181,8 +181,9 @@ public: void prepare(const Matrix& M, Vector& b) { OPM_TIMEBLOCK(prepare); - const bool firstcall = (this->matrix_ == nullptr); + [[maybe_unused]] const bool firstcall = (this->matrix_ == nullptr); ParentType::prepare(M,b); + #if HAVE_OPENCL // update matrix entries for solvers. if (firstcall && bdaBridge_) {