diff options
author | David Benjamin <davidben@google.com> | 2017-02-10 19:19:54 -0500 |
---|---|---|
committer | David Benjamin <davidben@google.com> | 2018-01-03 14:50:22 -0500 |
commit | b3d9be5c1d969dfdbf1f1ff924b9fd1be5eaecc9 (patch) | |
tree | 3ffa0c2921d9f401e92ada32cc5f6d1f9f3258b9 /googlemock/src | |
parent | ba6ecedede74521490f36b6aea08f91fdad6d201 (diff) | |
download | googletest-b3d9be5c1d969dfdbf1f1ff924b9fd1be5eaecc9.tar.gz googletest-b3d9be5c1d969dfdbf1f1ff924b9fd1be5eaecc9.tar.bz2 googletest-b3d9be5c1d969dfdbf1f1ff924b9fd1be5eaecc9.zip |
Pass the -Wmissing-declarations warning.
This makes it easier to use GTest in projects that build with the
-Wmissing-declarations warning. This fixes the warning in headers and
source files, though not GTest's own tests as it is rather noisy there.
Diffstat (limited to 'googlemock/src')
-rw-r--r-- | googlemock/src/gmock-spec-builders.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/src/gmock-spec-builders.cc b/googlemock/src/gmock-spec-builders.cc index fc4968ba..93a83ae5 100644 --- a/googlemock/src/gmock-spec-builders.cc +++ b/googlemock/src/gmock-spec-builders.cc @@ -508,7 +508,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<internal::CallReaction>(mock_behavior); } |