-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Add -Weffc++ #597
Conversation
@JonasVautherin I only did the core, plugins, integration tests. I would appreciate it if you could add everything backend related. |
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 😕. |
16556e4
to
f703590
Compare
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!
f703590
to
9c24c6b
Compare
@JonasVautherin please review so we can get it in and avoid conflicts. |
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.
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}; |
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.
Mouaha I had missed that.
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!