From 6b3d37252313f3398009969d517b26b1e60eab2a Mon Sep 17 00:00:00 2001 From: atsushi421 Date: Wed, 8 Jan 2025 16:23:13 +0900 Subject: [PATCH] fix: add maybe_unused Signed-off-by: atsushi421 --- src/agnocastlib/include/agnocast_publisher.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agnocastlib/include/agnocast_publisher.hpp b/src/agnocastlib/include/agnocast_publisher.hpp index e13d8d11..9f7cc88f 100644 --- a/src/agnocastlib/include/agnocast_publisher.hpp +++ b/src/agnocastlib/include/agnocast_publisher.hpp @@ -46,8 +46,8 @@ class Publisher using SharedPtr = std::shared_ptr>; Publisher( - rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node, const std::string & topic_name, - const rclcpp::QoS & qos) + [[maybe_unused]] rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node, /* for CARET */ + const std::string & topic_name, const rclcpp::QoS & qos) : topic_name_(topic_name), publisher_pid_(getpid()), qos_(qos) { initialize_publisher(publisher_pid_, topic_name_);