Skip to content

Commit

Permalink
Fixed Udpcap warning (#1558)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Apr 23, 2024
1 parent 6d91219 commit 93f8ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecal/core/src/io/udp/sendreceive/udp_receiver_npcap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ namespace IO
#if UDPCAP_VERSION_MAJOR == 1
// Show a compiler deprecation warning
// TODO: Remove for eCAL6
[[deprecated("Udpcap 1.x is deprecated and prone to data-loss. Please update udpcap to 2.x.")]]
{[[deprecated("Udpcap 1.x is deprecated and prone to data-loss. Please update udpcap to 2.x.")]] int udpcap{}; (void)(udpcap);}

bytes_received = m_socket.receiveDatagram(buf_, len_, static_cast<unsigned long>(timeout_), &source_address, &source_port);

Expand Down Expand Up @@ -146,7 +146,7 @@ namespace IO
#if UDPCAP_VERSION_MAJOR == 1
// Show a compiler deprecation warning
// TODO: Remove for eCAL6
[[deprecated("Udpcap 1.x is deprecated and prone to data-loss. Please update udpcap to 2.x.")]]
{[[deprecated("Udpcap 1.x is deprecated and prone to data-loss. Please update udpcap to 2.x.")]] int udpcap{}; (void)(udpcap);}

bytes_received = m_socket.receiveDatagram(buf_, len_, static_cast<unsigned long>(timeout_));
#else // Udpcap 2.x
Expand Down

0 comments on commit 93f8ad0

Please sign in to comment.