From a3e1e378a10dbf33f606f1b0e4017aad5c3a2518 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 8 Jul 2024 08:10:48 -0400 Subject: [PATCH] fix tests/sundials/kinsol_08 warning I don't quite know why clang 18 complains /srv/temp/testsuite-rKmw5ZRc/dealii/tests/sundials/kinsol_08.cc:67:27: warning: lambda capture 'N' is not required to be captured for this use [-Wunused-lambda-capture] 67 | kinsol.reinit_vector = [N](VectorType &v) { v.reinit(N); }; but this fixes it --- tests/sundials/kinsol_08.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sundials/kinsol_08.cc b/tests/sundials/kinsol_08.cc index a2097f777d..b38797aa4d 100644 --- a/tests/sundials/kinsol_08.cc +++ b/tests/sundials/kinsol_08.cc @@ -64,7 +64,7 @@ main() SUNDIALS::KINSOL kinsol(data); - kinsol.reinit_vector = [N](VectorType &v) { v.reinit(N); }; + kinsol.reinit_vector = [N = N](VectorType &v) { v.reinit(N); }; kinsol.residual = [](const VectorType &u, VectorType &F) { deallog << "Evaluating the solution at u=(" << u[0] << ',' << u[1] << ')' -- 2.39.5