From f280e2b48ea1cf4991210f65a217268d5da8b50d Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot <bertrand.bellenot@cern.ch> Date: Tue, 22 Jan 2019 17:31:41 +0100 Subject: [PATCH] Only use the #pragmas if not using Visual Studio --- core/imt/src/TThreadExecutor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/imt/src/TThreadExecutor.cxx b/core/imt/src/TThreadExecutor.cxx index e58cd0aa60b..108be9baa5a 100644 --- a/core/imt/src/TThreadExecutor.cxx +++ b/core/imt/src/TThreadExecutor.cxx @@ -1,13 +1,13 @@ #include "ROOT/TThreadExecutor.hxx" -#if defined(__GNUC__) +#if !defined(_MSC_VER) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" #endif #include "tbb/tbb.h" -#if defined(__GNUC__) +#if !defined(_MSC_VER) #pragma GCC diagnostic pop #endif -- GitLab