Define GTEST_DISABLE_MSC_WARNINGS_PUSH/POP for all compilers

This commit is contained in:
Robin Lindén 2018-11-10 15:40:57 +01:00
parent c43603f288
commit a3a42514f1
No known key found for this signature in database
GPG Key ID: 601A604B7E605776

View File

@ -310,6 +310,10 @@
__pragma(warning(disable: warnings))
# define GTEST_DISABLE_MSC_WARNINGS_POP_() \
__pragma(warning(pop))
#else
// Not all compilers are MSVC
# define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
# define GTEST_DISABLE_MSC_WARNINGS_POP_()
#endif
// Clang on Windows does not understand MSVC's pragma warning.