aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmock-spec-builders.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmock-spec-builders.cc')
-rw-r--r--src/gmock-spec-builders.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gmock-spec-builders.cc b/src/gmock-spec-builders.cc
index abaae3ad..cefb580f 100644
--- a/src/gmock-spec-builders.cc
+++ b/src/gmock-spec-builders.cc
@@ -250,7 +250,14 @@ void ReportUninterestingCall(CallReaction reaction, const string& msg) {
Log(kInfo, msg, 3);
break;
case kWarn:
- Log(kWarning, msg, 3);
+ Log(kWarning,
+ msg +
+ "\nNOTE: You can safely ignore the above warning unless this "
+ "call should not happen. Do not suppress it by blindly adding "
+ "an EXPECT_CALL() if you don't mean to enforce the call. "
+ "See http://code.google.com/p/googlemock/wiki/CookBook#"
+ "Knowing_When_to_Expect for details.",
+ 3);
break;
default: // FAIL
Expect(false, NULL, -1, msg);