Author: zturner Date: Fri Oct 23 12:54:00 2015 New Revision: 251130 URL: http://llvm.org/viewvc/llvm-project?rev=251130&view=rev Log: Disable a compiler warning on MSVC.
This is caused by a bug in MSVC's library implementation. It's fixed in the next version of the compiler, but for now the only way to silence this is to disable the warning. Modified: lldb/trunk/include/lldb/Utility/TaskPool.h Modified: lldb/trunk/include/lldb/Utility/TaskPool.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/TaskPool.h?rev=251130&r1=251129&r2=251130&view=diff ============================================================================== --- lldb/trunk/include/lldb/Utility/TaskPool.h (original) +++ lldb/trunk/include/lldb/Utility/TaskPool.h Fri Oct 23 12:54:00 2015 @@ -18,6 +18,14 @@ #include <eh.h> #endif +#if defined(_MSC_VER) +// Due to another bug in MSVC 2013, including <future> will generate hundreds of +// warnings in the Concurrency Runtime. This can be removed when we switch to +// MSVC 2015 +#pragma warning(push) +#pragma warning(disable:4062) +#endif + #include <cassert> #include <cstdint> #include <future> @@ -206,4 +214,9 @@ TaskRunner<T>::WaitForAllTasks() while (WaitForNextCompletedTask().valid()); } + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + #endif // #ifndef utility_TaskPool_h_ _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits