Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address a missing declaration warning to improve signal #3910

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

yesudeep
Copy link
Contributor

@@ -68,6 +68,8 @@ namespace internal {
// mockers, and all expectations.
GTEST_API_ GTEST_DEFINE_STATIC_MUTEX_(g_gmock_mutex);

CallReaction intToCallReaction(int mock_behavior);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this function is only called from this file, it does not need a declaration. It only needs to be declared static of be placed in the anonymous namespace to suppress the warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I notice the function is named intToCallReaction. Would you also want me to use IntToCallReaction instead based on the convention I see throughout the file?

Copy link

@defihook defihook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WhenTheCodingCodingGIF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants