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 compiler warnings and fail on warnings in future #2687

Merged
merged 2 commits into from
May 24, 2021

Conversation

rhaschke
Copy link
Contributor

No description provided.

@rhaschke rhaschke requested a review from v4hn as a code owner May 24, 2021 10:06
@@ -25,6 +25,7 @@ jobs:
- IMAGE: melodic-ci
CATKIN_LINT: true
env:
CXXFLAGS: "-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls -Wno-deprecated-copy"
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't we want -pedantic -std=c++14 as well?
Also I would have expected issues with upstream library headers...
Are all potentially-problematic ones included as -isystem now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We never used -pedantic in the past and as our target compilers are gcc + clang, I personally don't mind allowing non-standard compiler extensions.

@codecov
Copy link

codecov bot commented May 24, 2021

Codecov Report

Merging #2687 (7e90e6d) into master (722b97f) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2687      +/-   ##
==========================================
+ Coverage   60.55%   60.56%   +0.01%     
==========================================
  Files         402      402              
  Lines       29601    29601              
==========================================
+ Hits        17922    17924       +2     
+ Misses      11679    11677       -2     
Impacted Files Coverage Δ
...anning/planning_pipeline/src/planning_pipeline.cpp 63.64% <ø> (ø)
...meterization/work_space/pose_model_state_space.cpp 83.34% <0.00%> (+1.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 722b97f...7e90e6d. Read the comment docs.

@rhaschke rhaschke merged commit da782b6 into moveit:master May 24, 2021
@rhaschke rhaschke deleted the fix-warnings branch May 24, 2021 17:47
@v4hn
Copy link
Contributor

v4hn commented May 25, 2021 via email

@rhaschke
Copy link
Contributor Author

We also never compiled with -Werror.

We didn't do this explicitly but implicitly: Travis CI had a WARNINGS_OK=false variable, which made the build fail on any warnings (not only compiler warnings).

I see no reason not to actually enforce this on CI

We can give it a try, yes.

@v4hn v4hn mentioned this pull request May 25, 2021
rhaschke added a commit to ubi-agni/moveit that referenced this pull request Jun 3, 2021
rhaschke added a commit to ubi-agni/moveit that referenced this pull request Jun 3, 2021
rhaschke added a commit to ubi-agni/moveit that referenced this pull request Jun 3, 2021
rhaschke added a commit to ubi-agni/moveit that referenced this pull request Jun 3, 2021
rhaschke added a commit to ubi-agni/moveit that referenced this pull request Jun 3, 2021
rhaschke added a commit to ubi-agni/moveit that referenced this pull request Jun 4, 2021
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