Skip to content

Commit

Permalink
Fixed a couple compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Jul 3, 2023
1 parent ae6d4d1 commit 7b63c58
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ecal/core/src/service/ecal_service_client_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ namespace eCAL
// Event callback
// TODO: Make an actual implementation
const eCAL::service::ClientSession::EventCallbackT event_callback
= [this, service_ = iter] // TODO: using the this pointer here is extremely unsafe, as it actually forces us to manage the lifetime of this object
= [/*this, service_ = iter*/] // TODO: using the this pointer here is extremely unsafe, as it actually forces us to manage the lifetime of this object
(eCAL::service::ClientEventType /*event*/, const std::string& /*message*/) -> void
{

Expand Down
2 changes: 0 additions & 2 deletions ecal/service/src/client_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
* ========================= eCAL LICENSE =================================
*/

#pragma once

#include <ecal/service/client_manager.h>

namespace eCAL
Expand Down
4 changes: 2 additions & 2 deletions ecal/service/src/condition_variable_signaler.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class ConditionVariableSignaler
{
public:
ConditionVariableSignaler(std::condition_variable& condition_variable, std::mutex& mutex, bool& is_signaled)
: condition_variable_(condition_variable)
, mutex_ (mutex)
: mutex_ (mutex)
, condition_variable_(condition_variable)
, is_signaled_ (is_signaled)
{}

Expand Down
4 changes: 2 additions & 2 deletions ecal/service/src/protocol_v0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace eCAL
asio::async_read(socket
, asio::buffer(const_cast<char*>(payload_buffer->data()), payload_buffer->size())
, asio::transfer_at_least(payload_buffer->size())
, [&socket, header_buffer, payload_buffer, error_cb, success_cb](asio::error_code ec, std::size_t /*bytes_read*/)
, [header_buffer, payload_buffer, error_cb, success_cb](asio::error_code ec, std::size_t /*bytes_read*/)
{
if (ec)
{
Expand All @@ -102,7 +102,7 @@ namespace eCAL

asio::async_write(socket
, buffer_list
, [&socket, header_buffer, payload_buffer, error_cb, success_cb](asio::error_code ec, std::size_t /*bytes_sent*/)
, [header_buffer, payload_buffer, error_cb, success_cb](asio::error_code ec, std::size_t /*bytes_sent*/)
{
if (ec)
{
Expand Down
4 changes: 2 additions & 2 deletions ecal/service/src/protocol_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ namespace eCAL
asio::async_read(socket
, asio::buffer(const_cast<char*>(payload_buffer->data()), payload_buffer->size())
, asio::transfer_at_least(payload_buffer->size())
, [&socket, header_buffer, payload_buffer, error_cb, success_cb](asio::error_code ec, std::size_t /*bytes_read*/)
, [header_buffer, payload_buffer, error_cb, success_cb](asio::error_code ec, std::size_t /*bytes_read*/)
{
if (ec)
{
Expand All @@ -165,7 +165,7 @@ namespace eCAL

asio::async_write(socket
, buffer_list
, [&socket, header_buffer, payload_buffer, error_cb, success_cb](asio::error_code ec, std::size_t /*bytes_sent*/)
, [header_buffer, payload_buffer, error_cb, success_cb](asio::error_code ec, std::size_t /*bytes_sent*/)
{
if (ec)
{
Expand Down
2 changes: 0 additions & 2 deletions ecal/service/src/server_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
* ========================= eCAL LICENSE =================================
*/

#pragma once

#include <ecal/service/server_manager.h>

namespace eCAL
Expand Down

0 comments on commit 7b63c58

Please sign in to comment.