From 359b06681b1b91de917e24987829f759f6c74cb6 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 3 Sep 2019 17:16:16 -0400 Subject: [PATCH] Fixed warnings --- test/gtest/gtest.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/gtest/gtest.h b/test/gtest/gtest.h index 22e8407..5ce1552 100644 --- a/test/gtest/gtest.h +++ b/test/gtest/gtest.h @@ -54,8 +54,10 @@ #include #include -#pragma warning( push ) -#pragma warning( disable : 4996) +#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable : 4996) +#endif // Copyright 2005, Google Inc. // All rights reserved. @@ -19547,6 +19549,8 @@ bool StaticAssertTypeEq() { } // namespace testing +#if defined(_MSC_VER) #pragma warning( pop ) +#endif #endif // GTEST_INCLUDE_GTEST_GTEST_H_