From ecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 8 Jan 2021 13:21:00 +0100 Subject: lib: Fix warnings related to unnecessary lambda captures --- host/lib/rfnoc/chdr_ctrl_xport.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'host/lib/rfnoc/chdr_ctrl_xport.cpp') diff --git a/host/lib/rfnoc/chdr_ctrl_xport.cpp b/host/lib/rfnoc/chdr_ctrl_xport.cpp index f8b3cf03e..595e0b6dd 100644 --- a/host/lib/rfnoc/chdr_ctrl_xport.cpp +++ b/host/lib/rfnoc/chdr_ctrl_xport.cpp @@ -24,8 +24,7 @@ chdr_ctrl_xport::chdr_ctrl_xport(io_service::sptr io_srv, : _my_epid(my_epid), _recv_packet(pkt_factory.make_generic()), _disconnect(disconnect) { /* Make dumb send pipe */ - send_io_if::send_callback_t send_cb = [this]( - frame_buff::uptr buff, send_link_if* link) { + send_io_if::send_callback_t send_cb = [](frame_buff::uptr buff, send_link_if* link) { link->release_send_buff(std::move(buff)); }; _send_if = io_srv->make_send_client( -- cgit v1.2.3