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

Resolve unused parameter warnings #636

Merged

Conversation

bmagyar
Copy link
Member

@bmagyar bmagyar commented Feb 4, 2022

Warning: unused parameter ‘response’ [-Wunused-parameter]
 1154 |   std::shared_ptr<controller_manager_msgs::srv::ListHardwareComponents::Response> response)
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/bence/workspaces/ros2-ws/src/ros2_control/controller_manager/src/controller_manager.cpp: In member function ‘void controller_manager::ControllerManager::set_hardware_component_state_srv_cb(std::shared_ptr<controller_manager_msgs::srv::SetHardwareComponentState_Request_<std::allocator<void> > >, std::shared_ptr<controller_manager_msgs::srv::SetHardwareComponentState_Response_<std::allocator<void> > >)’:
/home/bence/workspaces/ros2-ws/src/ros2_control/controller_manager/src/controller_manager.cpp:1195:86: warning: unused parameter ‘response’ [-Wunused-parameter]
 1195 |   std::shared_ptr<controller_manager_msgs::srv::SetHardwareComponentState::Response> response)
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~

@bmagyar bmagyar requested a review from destogl February 4, 2022 08:44
Copy link
Member

@destogl destogl left a comment

Choose a reason for hiding this comment

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

Thanks!

@destogl destogl merged commit 7681f4c into ros-controls:master Feb 4, 2022
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.

None yet

2 participants