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

Fix -Wunused-parameter in java_names.h #8601

Merged
merged 2 commits into from May 11, 2021

Conversation

georgthegreat
Copy link
Contributor

No description provided.

@google-cla google-cla bot added the cla: yes label May 11, 2021
@@ -154,7 +154,7 @@ std::string GetOneofStoredType(const FieldDescriptor* field);

// Whether we should generate multiple java files for messages.
inline bool MultipleJavaFiles(const FileDescriptor* descriptor,
bool immutable) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@acozzette, these methods are either planned to be rewritten in the future, or correspond to some deprecated approach.

They are just too simple, and can be entirely removed in most cases.
If you suggest a better way to fixing this (i. e. removing these methods entirely), I can take a look onto it.

Copy link
Member

Choose a reason for hiding this comment

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

@georgthegreat Thanks for the cleanup! I think this should work except that our internal version of MultipleJavaFiles does use both parameters, so for this particular one I think it would be better to leave the parameter name but add something like (void) immutable;

@acozzette acozzette merged commit ca7f54a into protocolbuffers:3.17.x May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants