From a2e0ce426fd7243934c865163f3ef0411da25838 Mon Sep 17 00:00:00 2001 From: Johannes Schmidt Date: Wed, 19 Nov 2025 10:30:24 +0100 Subject: [PATCH] Fix -Wunused-variable warnings --- lib/base/io-engine.cpp | 2 -- lib/remote/consolehandler.cpp | 1 - test/icinga-legacytimeperiod.cpp | 4 ---- 3 files changed, 7 deletions(-) diff --git a/lib/base/io-engine.cpp b/lib/base/io-engine.cpp index 0792be5cc..81990865e 100644 --- a/lib/base/io-engine.cpp +++ b/lib/base/io-engine.cpp @@ -101,9 +101,7 @@ IoEngine::~IoEngine() boost::asio::post(m_IoContext, []() { throw TerminateIoThread(); }); - } - for (auto& thread : m_Threads) { thread.join(); } } diff --git a/lib/remote/consolehandler.cpp b/lib/remote/consolehandler.cpp index e17d7e3c1..5184638d4 100644 --- a/lib/remote/consolehandler.cpp +++ b/lib/remote/consolehandler.cpp @@ -21,7 +21,6 @@ using namespace icinga; REGISTER_URLHANDLER("/v1/console", ConsoleHandler); -static std::mutex l_QueryMutex; static std::map l_ApiScriptFrames; static Timer::Ptr l_FrameCleanupTimer; static std::mutex l_ApiScriptMutex; diff --git a/test/icinga-legacytimeperiod.cpp b/test/icinga-legacytimeperiod.cpp index 890dbe8da..0a75259b0 100644 --- a/test/icinga-legacytimeperiod.cpp +++ b/test/icinga-legacytimeperiod.cpp @@ -397,10 +397,6 @@ void AdvancedHelper(const char *timestamp, DateTime from, DateTime to) BOOST_AUTO_TEST_CASE(advanced) { String timestamp; - boost::posix_time::ptime begin; - boost::posix_time::ptime end; - boost::posix_time::ptime expectedBegin; - boost::posix_time::ptime expectedEnd; //----------------------------------------------------- // 2019-05-06 where Icinga celebrates 10 years #monitoringlove