small cleanup
This commit is contained in:
parent
373481c5a9
commit
e77deb29a6
@ -46,8 +46,11 @@ namespace testing {
|
|||||||
// Silence C4100 (unreferenced formal
|
// Silence C4100 (unreferenced formal
|
||||||
// parameter) for MSVC
|
// parameter) for MSVC
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
# pragma warning(push)
|
||||||
# pragma warning(disable:4100)
|
# pragma warning(disable:4100)
|
||||||
#if (_MSC_VER == 1900)
|
#if (_MSC_VER == 1900)
|
||||||
|
// and silence C4800 (C4800: 'int *const ': forcing value
|
||||||
|
// to bool 'true' or 'false') for MSVC 14
|
||||||
# pragma warning(disable:4800)
|
# pragma warning(disable:4800)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@ -78,6 +81,11 @@ MATCHER(IsFalse, negation ? "is true" : "is false") {
|
|||||||
return !static_cast<bool>(arg);
|
return !static_cast<bool>(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
} // namespace testing
|
} // namespace testing
|
||||||
|
|
||||||
#endif // GMOCK_GMOCK_MORE_MATCHERS_H_
|
#endif // GMOCK_GMOCK_MORE_MATCHERS_H_
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
// Disable MSVC2015 warning for std::pair:
|
// Disable MSVC2015 warning for std::pair:
|
||||||
// "decorated name length exceeded, name was truncated".
|
// "decorated name length exceeded, name was truncated".
|
||||||
#if defined(_MSC_VER) && (_MSC_VER == 1900)
|
#if defined(_MSC_VER) && (_MSC_VER == 1900)
|
||||||
|
# pragma warning(push)
|
||||||
# pragma warning(disable:4503)
|
# pragma warning(disable:4503)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -6694,3 +6695,8 @@ TEST(NotTest, WorksOnMoveOnlyType) {
|
|||||||
|
|
||||||
} // namespace gmock_matchers_test
|
} // namespace gmock_matchers_test
|
||||||
} // namespace testing
|
} // namespace testing
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER == 1900)
|
||||||
|
# pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user