Skip to content

Commit

Permalink
Clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KerstinKeller committed May 15, 2024
1 parent 4ef8f94 commit b16e400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ecal/core/include/ecal/msg/dynamic.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ namespace eCAL
* @param clock_ Message writer clock.
* @param id_ Message id.
**/
typedef std::function<void(const char* topic_name_, const T& msg_, long long time_, long long clock_, long long id_)> MsgReceiveCallbackT;
using MsgReceiveCallbackT = std::function<void(const char* topic_name_, const T& msg_, long long time_, long long clock_, long long id_)>;

/**
* @brief Add receive callback for incoming messages.
Expand Down Expand Up @@ -228,7 +228,7 @@ namespace eCAL
*
* @param error The error message string.
**/
typedef std::function<void(const std::string& error)> ErrorCallbackT;
using ErrorCallbackT = std::function<void(const std::string& error)>;

/**
* @brief Add callback function in case an error occurs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ProtoDynSubscriberTest : public ::testing::Test {
pub.Send(p);
}

void OnPerson(const char*, const std::shared_ptr<google::protobuf::Message>&, long long)
void OnPerson(const char* /*topic_name*/, const std::shared_ptr<google::protobuf::Message>& /*message*/, long long /*time*/)
{
received_callbacks++;
}
Expand Down

0 comments on commit b16e400

Please sign in to comment.