From 26fa994f146d7151774b10f2c6ed2ebad94c248d Mon Sep 17 00:00:00 2001 From: PKEuS Date: Wed, 21 Jan 2015 18:46:33 +0100 Subject: [PATCH] Removed "#pragma warning" from threadexecutor.cpp --- cli/threadexecutor.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/cli/threadexecutor.cpp b/cli/threadexecutor.cpp index c0cd4d57e..832643d81 100644 --- a/cli/threadexecutor.cpp +++ b/cli/threadexecutor.cpp @@ -425,7 +425,7 @@ unsigned int __stdcall ThreadExecutor::threadProc(void *args) for (;;) { if (it == threadExecutor->_files.end()) { LeaveCriticalSection(&threadExecutor->_fileSync); - return result; + break; } const std::string &file = it->first; @@ -452,15 +452,8 @@ unsigned int __stdcall ThreadExecutor::threadProc(void *args) CppCheckExecutor::reportStatus(threadExecutor->_processedFiles, threadExecutor->_totalFiles, threadExecutor->_processedSize, threadExecutor->_totalFileSize); LeaveCriticalSection(&threadExecutor->_reportSync); } - }; -#ifdef _MSC_VER -#pragma warning(push) -#pragma warning( disable : 4702 ) -#endif + } return result; -#ifdef _MSC_VER -#pragma warning(pop) -#endif } void ThreadExecutor::reportOut(const std::string &outmsg)