mirror of
https://github.com/google/googletest.git
synced 2024-12-27 10:11:03 +08:00
fixing MCVS warn
This commit is contained in:
parent
7045138a0d
commit
e0f4cf0561
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user