[Lldb-commits] [lldb] r251130 - Disable a compiler warning on MSVC.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 23 10:54:00 PDT 2015

Author: zturner
Date: Fri Oct 23 12:54:00 2015
New Revision: 251130

URL: http://llvm.org/viewvc/llvm-project?rev=251130&view=rev
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
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>
+#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)
 #include <cassert>
 #include <cstdint>
 #include <future>
@@ -206,4 +214,9 @@ TaskRunner<T>::WaitForAllTasks()
     while (WaitForNextCompletedTask().valid());
+#if defined(_MSC_VER)
+#pragma warning(pop)
 #endif // #ifndef utility_TaskPool_h_

More information about the lldb-commits mailing list