summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/include/lldb/Utility/TaskPool.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/include/lldb/Utility/TaskPool.h b/lldb/include/lldb/Utility/TaskPool.h
index 99b56a93ff2..aa8baaae3eb 100644
--- a/lldb/include/lldb/Utility/TaskPool.h
+++ b/lldb/include/lldb/Utility/TaskPool.h
@@ -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_
OpenPOWER on IntegriCloud