BehaviorTree/BehaviorTree.CPP

Build warning

Closed this issue · 2 comments

Hi,

In file included from /opt/ros/rolling/include/behaviortree_cpp/behavior_tree.h:23,
                 from /opt/ros/rolling/include/behaviortree_cpp/bt_factory.h:28,
                 from ~/ws/nav2_ws/src/navigation2/nav2_behavior_tree/plugins/control/recovery_node.cpp:128:
/opt/ros/rolling/include/behaviortree_cpp/controls/switch_node.h: In lambda function:
/opt/ros/rolling/include/behaviortree_cpp/controls/switch_node.h:91:15: error: declaration of ‘ports’ shadows a previous local [-Werror=shadow]
   91 |     PortsList ports;
      |               ^~~~~
/opt/ros/rolling/include/behaviortree_cpp/controls/switch_node.h:90:20: note: shadowed declaration is here
   90 |   static PortsList ports = []() {
      |                    ^~~~~
cc1plus: all warnings being treated as errors

reported ros-navigation/navigation2#3634 (comment) from rolling binaries

I see that its fixed 97c3f6a. Has this come out as a release yet and just waiting on a Rolling sync?

I will release 4.6 this week. This will include that change