fixing MCVS warn

This commit is contained in:
Gennadiy Civil 2018-04-05 14:00:14 -04:00
parent 7045138a0d
commit e0f4cf0561

View File

@ -43,6 +43,16 @@
namespace testing {
// The macros trigger warning C4100 (unreferenced formal
// parameter) in MSVC with -W4. Unfortunately they cannot be fixed in
// the macro definition, as the warnings are generated when the macro
// is expanded and macro expansion cannot contain #pragma. Therefore
// we suppress them here.
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable:4100)
#endif
// Defines a matcher that matches an empty container. The container must
// support both size() and empty(), which all STL-like containers provide.
MATCHER(IsEmpty, negation ? "isn't empty" : "is empty") {