From cc8701d23e31881d5619c0a4ff49421990e45e15 Mon Sep 17 00:00:00 2001 From: Pieter Pas Date: Thu, 25 Jul 2024 23:09:34 +0200 Subject: [PATCH] Resolve unused variable warning --- .../include/alpaqa/implementation/casadi/CasADiLoader-util.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interop/casadi/include/alpaqa/implementation/casadi/CasADiLoader-util.hpp b/src/interop/casadi/include/alpaqa/implementation/casadi/CasADiLoader-util.hpp index 243e6cd39d..2ee2f1ecd1 100644 --- a/src/interop/casadi/include/alpaqa/implementation/casadi/CasADiLoader-util.hpp +++ b/src/interop/casadi/include/alpaqa/implementation/casadi/CasADiLoader-util.hpp @@ -50,7 +50,7 @@ std::optional try_load(Loader &&loader, const char *name, Args &&...args) { } catch (casadi::CasadiException &) { return std::nullopt; #else - } catch (dynamic_load_error &e) { + } catch (dynamic_load_error &) { return std::nullopt; #endif } catch (std::out_of_range &) {