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 -Wall -Wextra warnings #77

Merged

Conversation

efernandez
Copy link
Collaborator

Continuation of #76 because I forgot to catkin clean -y and not everything was compiled with those flags. This time I cleaned everything and re-built.

I only had to fixed two types of warnings/errors:

  • unused-parameter, as in Comment unused parameters #76 . I commented the parameters, but if you want I can remove them for all instances, or for specific ones.
  • ignored-qualifiers, for functions/methods returning by value that had const. I removed the const for all of them because they were returning POD types. If the intend was to return a const reference instead, please let me know.

@svwilliams svwilliams requested review from svwilliams and ayrton04 and removed request for svwilliams July 11, 2019 18:01
Copy link
Contributor

@svwilliams svwilliams left a comment

Choose a reason for hiding this comment

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

Man the compiler is picky. I need to revisit my own workspace settings. I thought I had things configured for -Wall -Wextra.

@efernandez
Copy link
Collaborator Author

Yep, @svwilliams . I indeed thought I had those flags in my catkin config, but I didn't. They're very picky, I agree, but they detect things like not returning from a non-void function, which happened to me in some other unrelated code I have in my workspace. This might be also related with the old gcc version I'm using (5.5.0), but a newer compiler will likely complain of all this issues, and in my experience if you try clang it'd be even pickier. 😃

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

Successfully merging this pull request may close these issues.

None yet

3 participants