From fb6fd8d82a365ee12157670dce8db3e7ba93659f Mon Sep 17 00:00:00 2001 From: Hayate TOBA <105347690+bathteayo@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:46:15 +0900 Subject: [PATCH] fix(default_ad_api): fix unusedFunction (#8581) * fix: unusedFunction Signed-off-by: bathteayo <105347690+bathteayo@users.noreply.github.com> * Revert "fix: unusedFunction" This reverts commit c70a36d4d29668f02dae9416f202ccd05abee552. 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> --- system/autoware_default_adapi/src/utils/topics.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/autoware_default_adapi/src/utils/topics.hpp b/system/autoware_default_adapi/src/utils/topics.hpp index 6018abb877285..e0f57de89bac3 100644 --- a/system/autoware_default_adapi/src/utils/topics.hpp +++ b/system/autoware_default_adapi/src/utils/topics.hpp @@ -23,12 +23,14 @@ namespace autoware::default_adapi::utils { +// cppcheck-suppress-begin unusedFunction template MsgT ignore_stamp(MsgT msg) { msg.stamp = rclcpp::Time(0, 0); return msg; }; +// cppcheck-suppress-end unusedFunction template void notify(PubT & pub, std::optional & prev, const MsgT & curr, FuncT && ignore)