Skip to content

Commit

Permalink
add fixes for clang build since test 7 was still failing
Browse files Browse the repository at this point in the history
  • Loading branch information
sadguitarius committed Sep 29, 2024
1 parent cf4cdf2 commit f2d0113
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/rtpmidid/poller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define DEBUG0(...)

namespace rtpmidid {
class poller_private_data_t;
struct poller_private_data_t;
/**
* Simplified fd poller
*
Expand Down
4 changes: 2 additions & 2 deletions lib/rtpclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void rtpclient_t::state_send_ck_short() {
} else {
handle_event(LatencyMeasured);
}
ck_connection = peer.ck_event.connect([this](float ms) {
ck_connection = peer.ck_event.connect([](float ms) {
WARNING("OUT OF ORDER CK0 received, latency: {} ms", ms);
});
});
Expand All @@ -296,7 +296,7 @@ void rtpclient_t::state_send_ck_long() {
ck_connection = peer.ck_event.connect([this](float ms) {
timer.disable();
handle_event(WaitSendCK);
ck_connection = peer.ck_event.connect([this](float ms) {
ck_connection = peer.ck_event.connect([](float ms) {
WARNING("OUT OF ORDER CK0 received, latency: {} ms", ms);
});
});
Expand Down
6 changes: 3 additions & 3 deletions tests/test_rtpclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void test_network_address_list() {

// Move first
localhost_resolutions =
std::move(rtpmidid::network_address_list_t("::", "13001"));
rtpmidid::network_address_list_t("::", "13001");
first = localhost_resolutions.get_first();
DEBUG("First: {}", first.to_string());
ASSERT_EQUAL(first.hostname(), "::");
Expand Down Expand Up @@ -400,14 +400,14 @@ void test_client_try_several_connections() {
DEBUG("Got control packet: {}", packet);
control_packet.copy_from(packet);
control_packet_received = true;
control_remote_address = std::move(from.dup());
control_remote_address = from.dup();
});
auto peerA_midi_on_read_connection =
peerA_midi.on_read.connect([&](const rtpmidid::packet_t &packet,
const rtpmidid::network_address_t &from) {
midi_packet.copy_from(packet);
midi_packet_received = true;
midi_remote_address = std::move(from.dup());
midi_remote_address = from.dup();
});

// all in one list. Connects in reverse order (uses back() its more efficient.
Expand Down

0 comments on commit f2d0113

Please sign in to comment.