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
This commit is contained in:
parent
606e1e33ef
commit
a3cebaf5e9
|
@ -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_
|
||||
|
|
Loading…
Reference in New Issue