From cb3852b403be6d5beae3c3caee3ea38a46cf85d4 Mon Sep 17 00:00:00 2001 From: Yesudeep Mangalapilly Date: Mon, 27 Jun 2022 13:04:53 -0700 Subject: [PATCH] Mark intToCallReaction static --- googlemock/src/gmock-spec-builders.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/googlemock/src/gmock-spec-builders.cc b/googlemock/src/gmock-spec-builders.cc index 0d7e23716..783c31249 100644 --- a/googlemock/src/gmock-spec-builders.cc +++ b/googlemock/src/gmock-spec-builders.cc @@ -68,8 +68,6 @@ namespace internal { // mockers, and all expectations. GTEST_API_ GTEST_DEFINE_STATIC_MUTEX_(g_gmock_mutex); -CallReaction intToCallReaction(int mock_behavior); - // Logs a message including file and line number information. GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity, const char* file, int line, @@ -437,7 +435,7 @@ bool UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked() return expectations_met; } -CallReaction intToCallReaction(int mock_behavior) { +static CallReaction intToCallReaction(int mock_behavior) { if (mock_behavior >= kAllow && mock_behavior <= kFail) { return static_cast(mock_behavior); }