-
Notifications
You must be signed in to change notification settings - Fork 580
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 some more clang compiler warnings #1712
Conversation
Codecov ReportBase: 50.42% // Head: 50.44% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1712 +/- ##
==========================================
+ Coverage 50.42% 50.44% +0.03%
==========================================
Files 374 374
Lines 31335 31328 -7
==========================================
+ Hits 15797 15801 +4
+ Misses 15538 15527 -11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
69c8c34
to
f8ad26d
Compare
a2c93e1
to
b13e4c0
Compare
b13e4c0
to
73b0a52
Compare
After a full day of work, all compiler warnings in the |
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.
Thank you for this change. I don't remember warnings being disabled in CI; I didn't know they were. I'm sorry I didn't see that before.
I was the one who disabled the python test that you re-enabled yesterday. Thank you for that; I didn't how to deal with that one. It looks like it was as simple as removing that import as it was unused.
Would you like to merge this now or wait on that pull request to update google test? I think merging now would be nice, but I'm unsure what effect that has on people who build locally. |
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 like a lot about this. My only feedback is about the addition of destructors and how that implicitly deletes move semantics. This won't break user code per se but it can have performance impacts by converting some moves into copies. Do we care enough to = default
the move operators as well?
...r_testutils/include/pilz_industrial_motion_planner_testutils/goalconstraintsmsgconvertible.h
Show resolved
Hide resolved
As a user-declared destructor deletes any implicitly-defined move constructor/assignment operator, we need to declared them manually. This in turn requires to declare the copy constructor/assignment as well.
I suggest merging now to reenable stricter CI. The newer google test doesn't pose a problem locally. Your build log is just more cluttered with warnings (and you can't use |
aba4e4f
to
6125c57
Compare
... as they are not implicitly declared anymore
6125c57
to
c74caaf
Compare
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.
Why haven't we merged this yet? The only hold-back I see is that we might want to add a note to some documentation to locally switch to gtest1.11, but otherwise I agree with @rhaschke that we should not have to wait for the ament fix. Also, we should backport this to humble, right?
- Fix warning: definition of implicit copy assignment operator is deprecated - Fix warning: expression with side effects will be evaluated - Fix warning: passing by value - Enable -Werror - Fix -Wdelete-non-abstract-non-virtual-dtor - Fix more clang warnings - Modernize gtest: TYPED_TEST_CASE -> TYPED_TEST_SUITE - Fix GoogleTestVerification.UninstantiatedTypeParameterizedTestSuite - Add default copy/move constructors/assignment operators As a user-declared destructor deletes any implicitly-defined move constructor/assignment operator, we need to declared them manually. This in turn requires to declare the copy constructor/assignment as well. - Explicitly declare overrides - Add default constructors as they are not implicitly declared anymore - Declare selected classes as final - Add noexcept specifier to constructors
- Fix warning: definition of implicit copy assignment operator is deprecated - Fix warning: expression with side effects will be evaluated - Fix warning: passing by value - Enable -Werror - Fix -Wdelete-non-abstract-non-virtual-dtor - Fix more clang warnings - Modernize gtest: TYPED_TEST_CASE -> TYPED_TEST_SUITE - Fix GoogleTestVerification.UninstantiatedTypeParameterizedTestSuite - Add default copy/move constructors/assignment operators As a user-declared destructor deletes any implicitly-defined move constructor/assignment operator, we need to declared them manually. This in turn requires to declare the copy constructor/assignment as well. - Explicitly declare overrides - Add default constructors as they are not implicitly declared anymore - Declare selected classes as final - Add noexcept specifier to constructors
- Fix warning: definition of implicit copy assignment operator is deprecated - Fix warning: expression with side effects will be evaluated - Fix warning: passing by value - Enable -Werror - Fix -Wdelete-non-abstract-non-virtual-dtor - Fix more clang warnings - Modernize gtest: TYPED_TEST_CASE -> TYPED_TEST_SUITE - Fix GoogleTestVerification.UninstantiatedTypeParameterizedTestSuite - Add default copy/move constructors/assignment operators As a user-declared destructor deletes any implicitly-defined move constructor/assignment operator, we need to declared them manually. This in turn requires to declare the copy constructor/assignment as well. - Explicitly declare overrides - Add default constructors as they are not implicitly declared anymore - Declare selected classes as final - Add noexcept specifier to constructors - Fixup gmock/gtest warnings
This depends on ament/googletest#21