You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build rclcpp from source using Clang with version 10.
$ clang -v
Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
Expected behavior
rclcpp builds without errors.
Actual behavior
rclcpp fails due to warnings about missing virtual destructors.
Error:
rclcpp::message_memory_strategy::MessageMemoryStrategy<rcutils_char_array_t,
std::__1::allocator<void> >' that has virtual functions but non-virtual destructor
[-Werror,-Wdelete-non-virtual-dtor]
The struct was removed in ros2/rosbag2#493, but in order
to avoid a hard-break for users coming from Foxy I've added it back with a deprecation
warning.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Bug report
Required Info:
6ff3ff4
Steps to reproduce issue
Build rclcpp from source using Clang with version 10.
Expected behavior
rclcpp builds without errors.
Actual behavior
rclcpp fails due to warnings about missing virtual destructors.
Error:
All in all these classes are affected:
Additional information
Adding the virtual destructors fixes the issue.
Unfortunately I can't create the PR myself.
The text was updated successfully, but these errors were encountered: