aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/rfnoc_rx_streamer.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-08 13:21:00 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-04 08:20:04 -0600
commitecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8 (patch)
treec64a41d1eccaaa66e201b03a0c37a01f5f393b5f /host/lib/rfnoc/rfnoc_rx_streamer.cpp
parenta6a6f25404eac9cf9e01585d81fb67e9693d8769 (diff)
downloaduhd-ecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8.tar.gz
uhd-ecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8.tar.bz2
uhd-ecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8.zip
lib: Fix warnings related to unnecessary lambda captures
Diffstat (limited to 'host/lib/rfnoc/rfnoc_rx_streamer.cpp')
-rw-r--r--host/lib/rfnoc/rfnoc_rx_streamer.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/host/lib/rfnoc/rfnoc_rx_streamer.cpp b/host/lib/rfnoc/rfnoc_rx_streamer.cpp
index f7459dbfc..7acdf357d 100644
--- a/host/lib/rfnoc/rfnoc_rx_streamer.cpp
+++ b/host/lib/rfnoc/rfnoc_rx_streamer.cpp
@@ -72,7 +72,8 @@ rfnoc_rx_streamer::rfnoc_rx_streamer(const size_t num_chans,
add_property_resolver({&_mtu_in[i]},
std::move(mtu_resolver_out),
- [& mtu_in = _mtu_in[i], i, this]() {
+ [&mtu_in = _mtu_in[i], i, this]() {
+ const auto UHD_UNUSED(ii) = i;
RFNOC_LOG_TRACE("Calling resolver for `mtu_in'@" << i);
if (mtu_in.is_valid()) {
const size_t mtu =
@@ -207,7 +208,8 @@ void rfnoc_rx_streamer::_register_props(const size_t chan, const std::string& ot
});
add_property_resolver(
- {samp_rate_in}, {}, [& samp_rate_in = *samp_rate_in, chan, this]() {
+ {samp_rate_in}, {}, [&samp_rate_in = *samp_rate_in, chan, this]() {
+ const auto UHD_UNUSED(log_chan) = chan;
RFNOC_LOG_TRACE("Calling resolver for `samp_rate_in'@" << chan);
if (samp_rate_in.is_valid()) {
this->set_samp_rate(samp_rate_in.get());
@@ -215,7 +217,8 @@ void rfnoc_rx_streamer::_register_props(const size_t chan, const std::string& ot
});
add_property_resolver(
- {tick_rate_in}, {}, [& tick_rate_in = *tick_rate_in, chan, this]() {
+ {tick_rate_in}, {}, [&tick_rate_in = *tick_rate_in, chan, this]() {
+ const auto UHD_UNUSED(log_chan) = chan;
RFNOC_LOG_TRACE("Calling resolver for `tick_rate_in'@" << chan);
if (tick_rate_in.is_valid()) {
this->set_tick_rate(tick_rate_in.get());