Skip to content

Commit 3b6f2ae

Browse files
committed
fix(tier4_autoware_utils): fix -Werror=unused-parameter (autowarefoundation#6764)
fix(tier4_autoware_utils): fix -Werror=unused-parameter Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent 8f8b086 commit 3b6f2ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/tier4_autoware_utils/include/tier4_autoware_utils/ros/polling_subscriber.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class InterProcessPollingSubscriber
3838
noexec_subscription_options.callback_group = noexec_callback_group;
3939

4040
subscriber_ = node->create_subscription<T>(
41-
topic_name, rclcpp::QoS{1}, [node](const typename T::ConstSharedPtr msg) { assert(false); },
41+
topic_name, rclcpp::QoS{1},
42+
[node]([[maybe_unused]] const typename T::ConstSharedPtr msg) { assert(false); },
4243
noexec_subscription_options);
4344
};
4445
bool updateLatestData()

0 commit comments

Comments
 (0)