Index: src/libchcore/TWorkerThreadController.cpp =================================================================== diff -u -rab32897e61cc637a1e28d9dc3f0489b8d16a429c -r155f42138cfc19074a976e43c5b26b3ffb91e4df --- src/libchcore/TWorkerThreadController.cpp (.../TWorkerThreadController.cpp) (revision ab32897e61cc637a1e28d9dc3f0489b8d16a429c) +++ src/libchcore/TWorkerThreadController.cpp (.../TWorkerThreadController.cpp) (revision 155f42138cfc19074a976e43c5b26b3ffb91e4df) @@ -141,6 +141,7 @@ // try to resume thread priority cannot be changed DWORD dwResult = ::ResumeThread(m_hThread); + dwResult; // to avoid warnings in release builds BOOST_ASSERT(dwResult != (DWORD)-1); THROW_CORE_EXCEPTION_WIN32(eErr_CannotChangeThreadPriority, dwLastError);