From: Timo Heister Date: Mon, 8 Jul 2024 12:10:48 +0000 (-0400) Subject: fix tests/sundials/kinsol_08 warning X-Git-Tag: v9.6.0-rc1~122^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3e1e378a10dbf33f606f1b0e4017aad5c3a2518;p=dealii.git 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 --- 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] << ')'