From 2f080af4c09067699da3bd4e442254efdb0fc5e0 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 15 Dec 2015 22:10:30 +0000 Subject: [PATCH] Wrap include of in some warning suppression pragmas Eventually we may need to sink this include to the .cpp file or something to suport LLVM_ENABLE_THREADS=OFF, but this solves my immediate problem of fixing the build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255682 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/ThreadPool.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/llvm/Support/ThreadPool.h b/include/llvm/Support/ThreadPool.h index 5648db0642a..745334db445 100644 --- a/include/llvm/Support/ThreadPool.h +++ b/include/llvm/Support/ThreadPool.h @@ -20,11 +20,21 @@ // concrt.h depends on eh.h for __uncaught_exception declaration // even if we disable exceptions. #include + +// Disable warnings from ppltasks.h transitively included by . +#pragma warning(push) +#pragma warning(disable:4530) +#pragma warning(disable:4062) +#endif + +#include + +#ifdef _MSC_VER +#pragma warning(pop) #endif #include #include -#include #include #include #include -- 2.34.1