Index: src/libchengine/TSubTaskCopyMove.cpp =================================================================== diff -u -rb9453afbc6264bc3f3c6a7f86fadab7744e0fb16 -r20c1b142537a6a4a2a88b7ef722c65c374ece35f --- src/libchengine/TSubTaskCopyMove.cpp (.../TSubTaskCopyMove.cpp) (revision b9453afbc6264bc3f3c6a7f86fadab7744e0fb16) +++ src/libchengine/TSubTaskCopyMove.cpp (.../TSubTaskCopyMove.cpp) (revision 20c1b142537a6a4a2a88b7ef722c65c374ece35f) @@ -104,9 +104,12 @@ FeedbackManagerPtr spFeedbackManager = GetContext().GetFeedbackManager(); spFeedbackManager->SetSecondaryTimeTracker(&guard); +#pragma warning(push) +#pragma warning(disable: 4459) BOOST_SCOPE_EXIT(&spFeedbackManager) { spFeedbackManager->SetSecondaryTimeTracker(nullptr); } BOOST_SCOPE_EXIT_END +#pragma warning(pop) TFileInfoArray& rFilesCache = GetContext().GetFilesCache(); TTaskConfigTracker& rCfgTracker = GetContext().GetCfgTracker(); Index: src/libchengine/TSubTaskDelete.cpp =================================================================== diff -u -r08717141ce5f6926116c298cbc9442094a45bb67 -r20c1b142537a6a4a2a88b7ef722c65c374ece35f --- src/libchengine/TSubTaskDelete.cpp (.../TSubTaskDelete.cpp) (revision 08717141ce5f6926116c298cbc9442094a45bb67) +++ src/libchengine/TSubTaskDelete.cpp (.../TSubTaskDelete.cpp) (revision 20c1b142537a6a4a2a88b7ef722c65c374ece35f) @@ -81,9 +81,12 @@ FeedbackManagerPtr spFeedbackManager = GetContext().GetFeedbackManager(); spFeedbackManager->SetSecondaryTimeTracker(&guard); +#pragma warning(push) +#pragma warning(disable: 4459) BOOST_SCOPE_EXIT(&spFeedbackManager) { spFeedbackManager->SetSecondaryTimeTracker(nullptr); } BOOST_SCOPE_EXIT_END +#pragma warning(pop) // log TFileInfoArray& rFilesCache = GetContext().GetFilesCache(); Index: src/libchengine/TSubTaskFastMove.cpp =================================================================== diff -u -r08717141ce5f6926116c298cbc9442094a45bb67 -r20c1b142537a6a4a2a88b7ef722c65c374ece35f --- src/libchengine/TSubTaskFastMove.cpp (.../TSubTaskFastMove.cpp) (revision 08717141ce5f6926116c298cbc9442094a45bb67) +++ src/libchengine/TSubTaskFastMove.cpp (.../TSubTaskFastMove.cpp) (revision 20c1b142537a6a4a2a88b7ef722c65c374ece35f) @@ -83,11 +83,13 @@ FeedbackManagerPtr spFeedbackManager = GetContext().GetFeedbackManager(); spFeedbackManager->SetSecondaryTimeTracker(&guard); +#pragma warning(push) +#pragma warning(disable: 4459) BOOST_SCOPE_EXIT(&spFeedbackManager) { spFeedbackManager->SetSecondaryTimeTracker(nullptr); } BOOST_SCOPE_EXIT_END +#pragma warning(pop) - // log TWorkerThreadController& rThreadController = GetContext().GetThreadController(); TBasePathDataContainerPtr spBasePaths = GetContext().GetBasePaths(); Index: src/libchengine/TSubTaskScanDirectory.cpp =================================================================== diff -u -r08717141ce5f6926116c298cbc9442094a45bb67 -r20c1b142537a6a4a2a88b7ef722c65c374ece35f --- src/libchengine/TSubTaskScanDirectory.cpp (.../TSubTaskScanDirectory.cpp) (revision 08717141ce5f6926116c298cbc9442094a45bb67) +++ src/libchengine/TSubTaskScanDirectory.cpp (.../TSubTaskScanDirectory.cpp) (revision 20c1b142537a6a4a2a88b7ef722c65c374ece35f) @@ -84,9 +84,12 @@ FeedbackManagerPtr spFeedbackManager = GetContext().GetFeedbackManager(); spFeedbackManager->SetSecondaryTimeTracker(&guard); +#pragma warning(push) +#pragma warning(disable: 4459) BOOST_SCOPE_EXIT(&spFeedbackManager) { spFeedbackManager->SetSecondaryTimeTracker(nullptr); } BOOST_SCOPE_EXIT_END +#pragma warning(pop) // log TFileInfoArray& rFilesCache = GetContext().GetFilesCache(); Index: src/libchengine/TTask.cpp =================================================================== diff -u -r08717141ce5f6926116c298cbc9442094a45bb67 -r20c1b142537a6a4a2a88b7ef722c65c374ece35f --- src/libchengine/TTask.cpp (.../TTask.cpp) (revision 08717141ce5f6926116c298cbc9442094a45bb67) +++ src/libchengine/TTask.cpp (.../TTask.cpp) (revision 20c1b142537a6a4a2a88b7ef722c65c374ece35f) @@ -550,10 +550,12 @@ // set time tracker and ensure it is unset on scope exit m_spFeedbackManager->SetTimeTracker(&tProcessingGuard); +#pragma warning(push) +#pragma warning(disable: 4459) BOOST_SCOPE_EXIT(&m_spFeedbackManager) { m_spFeedbackManager->SetTimeTracker(nullptr); } BOOST_SCOPE_EXIT_END - +#pragma warning(pop) const size_t ExceptionBufferSize = 2048; std::unique_ptr upExceptionInfoBuffer(new wchar_t[ExceptionBufferSize]); try