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

Add -Weffc++ #597

Merged
merged 10 commits into from
Nov 21, 2018
Merged

Add -Weffc++ #597

merged 10 commits into from
Nov 21, 2018

Conversation

julianoes
Copy link
Collaborator

I want to add the effc++ warning because we had a bug where a member variable was not initalized and this resulted in random behavior. See #596.

Really, this is something that the compiler should catch, no matter what!

@julianoes
Copy link
Collaborator Author

@JonasVautherin I only did the core, plugins, integration tests. I would appreciate it if you could add everything backend related.

@JonasVautherin
Copy link
Collaborator

I'll try to have a look as soon as I get time to look into the build system, but right now I have much higher-priority tasks to finish 😕.

I want to add the effc++ warning because we had a bug where a member
variable was not initalized and this resulted in random behavior.
Really, this is something that the compiler should catch, no matter
what!
@julianoes
Copy link
Collaborator Author

@JonasVautherin please review so we can get it in and avoid conflicts.

JonasVautherin
JonasVautherin previously approved these changes Nov 21, 2018
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

In the previous commit, we accidentally changed the init value of this
variable, therefore we change it back.
@@ -197,7 +197,7 @@ class TelemetryImpl : public PluginImplBase {

// The ground speed and position are coupled to the same message, therefore, we just use
// the faster between the two.
double _ground_speed_ned_rate_hz{1.0};
double _ground_speed_ned_rate_hz{0.0};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mouaha I had missed that.

@julianoes julianoes merged commit fc66a91 into develop Nov 21, 2018
@julianoes julianoes deleted the add-effcpp branch November 21, 2018 13:51
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.

2 participants