From 6b32f34fc22ce082a38678c2f35e82e20f536357 Mon Sep 17 00:00:00 2001 From: Rahul Sheth Date: Thu, 27 Aug 2020 17:02:42 -0400 Subject: [PATCH] Try disabling C4389 for GTest only for MSVC --- test/unit/UnitTestPCH.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/unit/UnitTestPCH.h b/test/unit/UnitTestPCH.h index d4fdfc4a7..4570dce81 100644 --- a/test/unit/UnitTestPCH.h +++ b/test/unit/UnitTestPCH.h @@ -43,10 +43,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // We need to be sure to have the same STL settings as Assimp #include -#pragma warning(push) -#pragma warning(disable:4389) +#ifdef _MSC_VER +# pragma warning(push) +# pragma warning(disable : 4389) +#endif #include -#pragma warning(pop) +#ifdef _MSC_VER +# pragma warning(pop) +#endif #include #include #include "UTLogStream.h"