-
Notifications
You must be signed in to change notification settings - Fork 539
Enable extra warnings (-Wextra) #384
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
@tmontgomery What do you think about this patch? |
@@ -4,4 +4,5 @@ | |||
"http://www.puppycrawl.com/dtds/suppressions_1_0.dtd"> | |||
<suppressions> | |||
<suppress files=".*generated.*" checks="."/> | |||
<suppress files="CppGenerator.java" checks="MethodLength"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not something we want to suppress.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to split up the constructor codegen function for no good reason. Should I do something like this:
void generateConstructor() {
generatePart1();
generatePart2();
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is best to break up large methods into logical blocks so they can be reasoned about.
a looking forward 80c53b6 in next release |
@tmontgomery @mjpt777 I've updated this PR to ignore -Wtype-limits in wrapForEncode instead of the more complicated change i previously had. This PR is a superset of #421 |
@tmontgomery @mjpt777 Any thoughts on this? |
Sorry this took so long. Thanks! |
Enable extra warnings and fix those warnings.