diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-08 13:21:00 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:20:04 -0600 |
commit | ecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8 (patch) | |
tree | c64a41d1eccaaa66e201b03a0c37a01f5f393b5f /host/lib/usrp | |
parent | a6a6f25404eac9cf9e01585d81fb67e9693d8769 (diff) | |
download | uhd-ecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8.tar.gz uhd-ecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8.tar.bz2 uhd-ecefbdd9ab245c1ef3ea8a8521ea79952f06dbe8.zip |
lib: Fix warnings related to unnecessary lambda captures
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 4 | ||||
-rw-r--r-- | host/lib/usrp/dboard/e3xx/e3xx_radio_control_init.cpp | 4 | ||||
-rw-r--r-- | host/lib/usrp/x300/x300_impl.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index e43eff045..1205843ae 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -758,7 +758,7 @@ b200_impl::b200_impl( mb_path / "gpio" / "FP0" / attr.second) .set(std::vector<std::string>( 32, usrp::gpio_atr::default_attr_value_map.at(attr.first))) - .add_coerced_subscriber([this](const std::vector<std::string>&) { + .add_coerced_subscriber([](const std::vector<std::string>&) { throw uhd::runtime_error("This device does not support setting " "the GPIO_SRC attribute."); }); @@ -1065,7 +1065,7 @@ void b200_impl::setup_radio(const size_t dspno) return this->update_bandsel(key, freq); }) // Every time we retune, we re-set the power level. - .add_coerced_subscriber([this, pwr_mgr = perif.pwr_mgr.at(dir_key)]( + .add_coerced_subscriber([pwr_mgr = perif.pwr_mgr.at(dir_key)]( const double) { pwr_mgr->update_power(); }) ; diff --git a/host/lib/usrp/dboard/e3xx/e3xx_radio_control_init.cpp b/host/lib/usrp/dboard/e3xx/e3xx_radio_control_init.cpp index f44bdaeb7..995133442 100644 --- a/host/lib/usrp/dboard/e3xx/e3xx_radio_control_init.cpp +++ b/host/lib/usrp/dboard/e3xx/e3xx_radio_control_init.cpp @@ -215,7 +215,7 @@ void e3xx_radio_control_impl::_init_frontend_subtree( .add_coerced_subscriber([](const meta_range_t&) { throw uhd::runtime_error("Attempting to update gain range!"); }) - .set_publisher([this]() { + .set_publisher([]() { return meta_range_t( AD9361_MIN_TX_GAIN, AD9361_MAX_TX_GAIN, AD9361_TX_GAIN_STEP); }); @@ -235,7 +235,7 @@ void e3xx_radio_control_impl::_init_frontend_subtree( .add_coerced_subscriber([](const meta_range_t&) { throw uhd::runtime_error("Attempting to update gain range!"); }) - .set_publisher([this]() { + .set_publisher([]() { return meta_range_t( AD9361_MIN_RX_GAIN, AD9361_MAX_RX_GAIN, AD9361_RX_GAIN_STEP); }); diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp index fa8425fac..d9aff1a94 100644 --- a/host/lib/usrp/x300/x300_impl.cpp +++ b/host/lib/usrp/x300/x300_impl.cpp @@ -367,7 +367,7 @@ void x300_impl::setup_mb(const size_t mb_i, const uhd::device_addr_t& dev_addr) // require a clock rate of no more than the max pfd frequency to maintain phase // synchronization. If there is no UBX, the default daughterboard clock rate is half // of the master clock rate for X300. - const double x300_dboard_clock_rate = [this, dev_addr, mb]() -> double { + const double x300_dboard_clock_rate = [dev_addr, mb]() -> double { // Do not override use-specified dboard clock rates if (dev_addr.has_key("dboard_clock_rate")) { return mb.args.get_dboard_clock_rate(); |