diff options
author | Zachary Turner <zturner@google.com> | 2015-10-23 17:54:00 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-10-23 17:54:00 +0000 |
commit | a3cebaf5e996c1989531e7d9c8b4827ece7130af (patch) | |
tree | e3827efc3627584d155e7154ea0783dfac41f3dc | |
parent | 606e1e33efc31cc8aa5cf65472639e86783407a3 (diff) | |
download | bcm5719-llvm-a3cebaf5e996c1989531e7d9c8b4827ece7130af.tar.gz bcm5719-llvm-a3cebaf5e996c1989531e7d9c8b4827ece7130af.zip |
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.
llvm-svn: 251130
-rw-r--r-- | lldb/include/lldb/Utility/TaskPool.h | 13 |
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_ |