Skip to content

Commit aa0f150

Browse files
Fix -Wunused-variable warnings
1 parent 33e9ddf commit aa0f150

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

lib/base/io-engine.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ IoEngine::~IoEngine()
101101
boost::asio::post(m_IoContext, []() {
102102
throw TerminateIoThread();
103103
});
104-
}
105104

106-
for (auto& thread : m_Threads) {
107105
thread.join();
108106
}
109107
}

lib/remote/consolehandler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ using namespace icinga;
2121

2222
REGISTER_URLHANDLER("/v1/console", ConsoleHandler);
2323

24-
static std::mutex l_QueryMutex;
2524
static std::map<String, ApiScriptFrame> l_ApiScriptFrames;
2625
static Timer::Ptr l_FrameCleanupTimer;
2726
static std::mutex l_ApiScriptMutex;

test/icinga-legacytimeperiod.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,6 @@ void AdvancedHelper(const char *timestamp, DateTime from, DateTime to)
397397
BOOST_AUTO_TEST_CASE(advanced)
398398
{
399399
String timestamp;
400-
boost::posix_time::ptime begin;
401-
boost::posix_time::ptime end;
402-
boost::posix_time::ptime expectedBegin;
403-
boost::posix_time::ptime expectedEnd;
404400

405401
//-----------------------------------------------------
406402
// 2019-05-06 where Icinga celebrates 10 years #monitoringlove

0 commit comments

Comments
 (0)