From 496d747d87c1a6c886918a4ebe820e8e9cc26316 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 25 Jun 2023 14:43:43 -0400 Subject: [PATCH] fix kinsol unused lambda capture warning --- source/sundials/kinsol.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/source/sundials/kinsol.cc b/source/sundials/kinsol.cc index b0fbcd5044..e819db7c1a 100644 --- a/source/sundials/kinsol.cc +++ b/source/sundials/kinsol.cc @@ -228,14 +228,12 @@ namespace SUNDIALS // helper function to create N_Vectors compatible with different versions // of SUNDIALS - const auto make_compatible_nvector_view = [this](auto &v) { - return internal::make_nvector_view(v -# if !DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0) - , - kinsol_ctx + const auto make_compatible_nvector_view = +# if DEAL_II_SUNDIALS_VERSION_LT(6, 0, 0) + [](auto &v) { return internal::make_nvector_view(v); }; +# else + [this](auto &v) { return internal::make_nvector_view(v, kinsol_ctx); }; # endif - ); - }; VectorType ones; -- 2.39.5