Fix compiler warnings

This commit is contained in:
Robert Haschke 2022-11-01 23:30:09 +01:00
parent 7c66b85aa7
commit 08dbd54a4b
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ void ExecuteTaskSolutionCapability::goalCallback(
}
rclcpp_action::CancelResponse ExecuteTaskSolutionCapability::preemptCallback(
const std::shared_ptr<rclcpp_action::ServerGoalHandle<ExecuteTaskSolutionAction>> goal_handle) {
const std::shared_ptr<rclcpp_action::ServerGoalHandle<ExecuteTaskSolutionAction>> /*goal_handle*/) {
if (context_->plan_execution_)
context_->plan_execution_->stop();
return rclcpp_action::CancelResponse::ACCEPT;

View File

@ -69,8 +69,8 @@ private:
preemptCallback(const std::shared_ptr<rclcpp_action::ServerGoalHandle<ExecuteTaskSolutionAction>> goal_handle);
/** Always accept the goal */
rclcpp_action::GoalResponse handleNewGoal(const rclcpp_action::GoalUUID& uuid,
const ExecuteTaskSolutionAction::Goal::ConstSharedPtr goal) const {
rclcpp_action::GoalResponse handleNewGoal(const rclcpp_action::GoalUUID& /*uuid*/,
const ExecuteTaskSolutionAction::Goal::ConstSharedPtr /*goal*/) const {
return rclcpp_action::GoalResponse::ACCEPT_AND_EXECUTE;
}