Skip to content

Commit

Permalink
[build] Remove some build warnings (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peguen authored Feb 12, 2025
1 parent 15236e7 commit 91e1618
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ecal/core/src/pubsub/ecal_publisher_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ namespace eCAL
return(true);
}

bool CPublisherImpl::SetAttribute(const std::string& /* attr_name_ */_, const std::string& /* attr_value_ */)
bool CPublisherImpl::SetAttribute(const std::string& /* attr_name_ */, const std::string& /* attr_value_ */)
{
#ifndef NDEBUG
Logging::Log(Logging::log_level_debug2, m_attributes.topic_name + "::CPublisherImpl::SetAttribute");
Expand Down
6 changes: 3 additions & 3 deletions ecal/service/test/src/ecal_tcp_service_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@ TEST(ecal_service, Callback_ApiCallsFromCallbacks) // NOLINT

const ecal_service::ClientSession::EventCallbackT client_event_callback
= [&num_client_event_callback_called, &client]
(ecal_service::ClientEventType event, const std::string& /*message*/) -> void
(ecal_service::ClientEventType /* event */, const std::string& /*message*/) -> void
{
if (client)
{
Expand Down Expand Up @@ -1772,13 +1772,13 @@ TEST(ecal_service, BackupHost)
};

const ecal_service::Server::EventCallbackT server_event_callback
= [&num_server_event_callback_called](ecal_service::ServerEventType event, const std::string& /*message*/) -> void
= [&num_server_event_callback_called](ecal_service::ServerEventType /* event */, const std::string& /*message*/) -> void
{
num_server_event_callback_called++;
};

const ecal_service::ClientSession::EventCallbackT client_event_callback
= [&num_client_event_callback_called](ecal_service::ClientEventType event, const std::string& /*message*/) -> void
= [&num_client_event_callback_called](ecal_service::ClientEventType /* event */, const std::string& /*message*/) -> void
{
num_client_event_callback_called++;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ TEST(core_cpp_registration_public, GetTopicsParallel)
std::set<eCAL::STopicId> tmp_publisher_ids;

do {
std::set<eCAL::STopicId> tmp_publisher_ids;
eCAL::Registration::GetPublisherIDs(tmp_publisher_ids);

number_publishers_seen = tmp_publisher_ids.size();
Expand Down

0 comments on commit 91e1618

Please sign in to comment.