Skip to content

Commit

Permalink
fix(default_ad_api): fix unusedFunction (autowarefoundation#8581)
Browse files Browse the repository at this point in the history
* fix: unusedFunction

Signed-off-by: bathteayo <105347690+bathteayo@users.noreply.github.com>

* Revert "fix: unusedFunction"

This reverts commit c70a36d.

Signed-off-by: bathteayo <105347690+bathteayo@users.noreply.github.com>

* fix: unusedFunction

Signed-off-by: bathteayo <105347690+bathteayo@users.noreply.github.com>

---------

Signed-off-by: bathteayo <105347690+bathteayo@users.noreply.github.com>
Co-authored-by: kobayu858 <129580202+kobayu858@users.noreply.github.com>
  • Loading branch information
bathteayo and kobayu858 committed Aug 29, 2024
1 parent 1827117 commit fb6fd8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/autoware_default_adapi/src/utils/topics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
namespace autoware::default_adapi::utils
{

// cppcheck-suppress-begin unusedFunction
template <class MsgT>
MsgT ignore_stamp(MsgT msg)
{
msg.stamp = rclcpp::Time(0, 0);
return msg;
};
// cppcheck-suppress-end unusedFunction

template <class PubT, class MsgT, class FuncT>
void notify(PubT & pub, std::optional<MsgT> & prev, const MsgT & curr, FuncT && ignore)
Expand Down

0 comments on commit fb6fd8d

Please sign in to comment.