]> granicus.if.org Git - icinga2/commitdiff
Fix compiler warnings in ThreadPool::ThreadPool.
authorGunnar Beutner <gunnar@beutner.name>
Tue, 17 Dec 2013 06:38:15 +0000 (07:38 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 17 Dec 2013 06:52:26 +0000 (07:52 +0100)
Refs #5349

lib/base/threadpool.cpp

index 3990973a7e89ee3d0278f8029cdf1cfb191adb74..ce46c921e96c42953a571ef1f566fe4ca94d8a83 100644 (file)
@@ -34,7 +34,7 @@ using namespace icinga;
 int ThreadPool::m_NextID = 1;
 
 ThreadPool::ThreadPool(int max_threads)
-       : m_ID(m_NextID++), m_Stopped(false), m_MaxThreads(max_threads)
+       : m_ID(m_NextID++), m_MaxThreads(max_threads), m_Stopped(false)
 {
        if (m_MaxThreads != -1 && m_MaxThreads < sizeof(m_Queues) / sizeof(m_Queues[0]))
                m_MaxThreads = sizeof(m_Queues) / sizeof(m_Queues[0]);