mirror of
https://github.com/google/googletest.git
synced 2026-06-15 08:26:11 +08:00
fix: resolve -Wmissing-declarations warning
Wrapped `intToCallReaction` in an anonymous namespace to prevent it from leaking into the global scope. This resolves the missing declaration compiler warning. Fixes #3909
This commit is contained in:
parent
add971c7cb
commit
cb551cbb5e
@ -442,14 +442,16 @@ bool UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked()
|
||||
|
||||
return expectations_met;
|
||||
}
|
||||
|
||||
static CallReaction intToCallReaction(int mock_behavior) {
|
||||
namespace{
|
||||
CallReaction intToCallReaction(int mock_behavior) {
|
||||
if (mock_behavior >= kAllow && mock_behavior <= kFail) {
|
||||
return static_cast<internal::CallReaction>(mock_behavior);
|
||||
}
|
||||
return kWarn;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} // namespace internal
|
||||
|
||||
// Class Mock.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user