fix some warnings

This commit is contained in:
Kurt Wilson 2024-11-01 15:04:41 -04:00
parent 153c5a5bda
commit f43d2d6706
2 changed files with 1 additions and 3 deletions

View file

@ -210,8 +210,7 @@ void ROSDefaultMultithreadedExecutor::spin()
} }
} }
void ROSDefaultMultithreadedExecutor::run(size_t thread_number) void ROSDefaultMultithreadedExecutor::run(__attribute__((unused)) size_t _thread_number) {
{
while (rclcpp::ok(this->context_) && spinning.load()) while (rclcpp::ok(this->context_) && spinning.load())
{ {
rclcpp::AnyExecutable any_exec; rclcpp::AnyExecutable any_exec;

View file

@ -17,7 +17,6 @@
#include "rclcpp/any_executable.hpp" #include "rclcpp/any_executable.hpp"
#include "rclcpp/scope_exit.hpp" #include "rclcpp/scope_exit.hpp"
#include "rclcpp/utilities.hpp" #include "rclcpp/utilities.hpp"
#include "rclcpp/exceptions.hpp"
#include <memory> #include <memory>
#include <sched.h> #include <sched.h>
// for sleep // for sleep