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 virtual destructors for WindowManagerInterface and ViewportProjectionFinder #356

Merged
merged 1 commit into from
Oct 8, 2018
Merged

Add virtual destructors for WindowManagerInterface and ViewportProjectionFinder #356

merged 1 commit into from
Oct 8, 2018

Conversation

kartikmohta
Copy link
Contributor

To fix the following warnings (converted to errors by compile options):

error: destructor called on non-final 'MockProjectionFinder' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
error: destructor called on non-final 'MockWindowManagerInterface' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]

This is when compiling with clang 7 on ArchLinux.

@tfoote tfoote added the in review Waiting for review (Kanban column) label Oct 4, 2018
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Oh yeah, definitely. This fixes the build for me on High Sierra as well. I'll kick off CI on it just to be sure, but this is pretty obviously needed.

@clalancette
Copy link
Contributor

clalancette commented Oct 5, 2018

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@clalancette
Copy link
Contributor

Oh, right. CI is going to fail because this branch needs to be rebased after ros2/rcutils#113 was merged. @kartikmohta , would you mind doing a quick rebase? Thanks.

…tionFinder

To fix the following warnings (converted to errors by compile options):
error: destructor called on non-final 'MockProjectionFinder' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
error: destructor called on non-final 'MockWindowManagerInterface' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
@kartikmohta
Copy link
Contributor Author

@clalancette Rebased to be on top of the current ros2 branch.

@clalancette
Copy link
Contributor

CI is happy, we need this to compile (along with ros2/rclcpp#566), so I'm going to merge. Thanks for the contribution!

@clalancette clalancette merged commit 9eb7964 into ros2:ros2 Oct 8, 2018
@clalancette clalancette removed the in review Waiting for review (Kanban column) label Oct 8, 2018
@kartikmohta kartikmohta deleted the fix/virtual-destructors branch October 10, 2018 03:20
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.

3 participants