Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: atsushi421 <atsushi.yano.2@tier4.jp>
  • Loading branch information
atsushi421 committed Jan 24, 2025
1 parent 6e71ee0 commit 85a9e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agnocastlib/include/agnocast_subscription.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ class Subscription : public SubscriptionBase
mqd_t mq = open_mq_for_subscription(topic_name_, subscriber_pid_, mq_subscription);
auto node_base = node->get_node_base_interface();
rclcpp::CallbackGroup::SharedPtr callback_group = get_valid_callback_group(node_base, options);
// cppcheck-suppress unreadVariable
uint32_t local_topic_id = agnocast::register_callback(
callback, topic_name_, static_cast<uint32_t>(qos.depth()), mq,
callback_group); // cppcheck-suppress unreadVariable
callback, topic_name_, static_cast<uint32_t>(qos.depth()), mq, callback_group);

#ifdef TRACETOOLS_LTTNG_ENABLED
uint64_t pid_ltid = (static_cast<uint64_t>(subscriber_pid_) << 32) | local_topic_id;
Expand Down

0 comments on commit 85a9e4a

Please sign in to comment.