aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-06-22 12:24:33 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-06-22 15:07:02 -0500
commit548bef02cafec8778f64b4c2348dc828f7cca83e (patch)
tree4df89984a4b3576fe6379e272f9aa8f99e36e263 /host/lib/usrp/dboard
parentc399ab8a9b69bca19843eac9ef6cf8e89f816bc4 (diff)
downloaduhd-548bef02cafec8778f64b4c2348dc828f7cca83e.tar.gz
uhd-548bef02cafec8778f64b4c2348dc828f7cca83e.tar.bz2
uhd-548bef02cafec8778f64b4c2348dc828f7cca83e.zip
zbx: Fix clang compiler warnings
- Missing override - Superfluous 'this' lambda capture - Register state in zbx_cpld_ctrl was being initialized too late (this is actually a bug depending on compiler version) - Remove lots of unused fields from experts
Diffstat (limited to 'host/lib/usrp/dboard')
-rw-r--r--host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp12
-rw-r--r--host/lib/usrp/dboard/zbx/zbx_lo_ctrl.cpp3
2 files changed, 5 insertions, 10 deletions
diff --git a/host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp b/host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp
index ef86f10b6..f0558f8a4 100644
--- a/host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp
+++ b/host/lib/usrp/dboard/zbx/zbx_dboard_init.cpp
@@ -190,7 +190,7 @@ void zbx_dboard_impl::_init_prop_tree()
_cpld);
subtree->create<eeprom_map_t>("eeprom")
- .add_coerced_subscriber([this](const eeprom_map_t&) {
+ .add_coerced_subscriber([](const eeprom_map_t&) {
throw uhd::runtime_error("Attempting to update daughterboard eeprom!");
})
.set_publisher([this]() { return get_db_eeprom(); });
@@ -261,8 +261,7 @@ uhd::usrp::pwr_cal_mgr::sptr zbx_dboard_impl::_init_power_cal(
return trx == TX_DIRECTION ? get_tx_frequency(chan_idx)
: get_rx_frequency(chan_idx);
},
- [this,
- trx_str = (trx == TX_DIRECTION ? "tx" : "rx"),
+ [trx_str = (trx == TX_DIRECTION ? "tx" : "rx"),
fe_path,
subtree,
chan_str = std::to_string(chan_idx)]() -> std::string {
@@ -327,16 +326,15 @@ void zbx_dboard_impl::_init_experts(uhd::property_tree::sptr subtree,
expert_factory::add_worker_node<zbx_rx_gain_expert>(expert,
expert->node_retriever(),
fe_path,
- chan_idx,
get_pwr_mgr(trx).at(chan_idx),
_rx_dsa_cal);
}
expert_factory::add_worker_node<zbx_freq_be_expert>(
- expert, expert->node_retriever(), fe_path, trx, chan_idx);
+ expert, expert->node_retriever(), fe_path);
expert_factory::add_worker_node<zbx_band_inversion_expert>(
- expert, expert->node_retriever(), fe_path, trx, chan_idx, _db_idx, _rpcc);
+ expert, expert->node_retriever(), fe_path, trx, chan_idx, _rpcc);
// Initialize our LO Control Experts
@@ -365,8 +363,6 @@ void zbx_dboard_impl::_init_experts(uhd::property_tree::sptr subtree,
expert_factory::add_worker_node<zbx_lo_expert>(expert,
expert->node_retriever(),
fe_path,
- trx,
- chan_idx,
lo_select,
lo_ctrl);
_lo_ctrl_map.insert({lo, lo_ctrl});
diff --git a/host/lib/usrp/dboard/zbx/zbx_lo_ctrl.cpp b/host/lib/usrp/dboard/zbx/zbx_lo_ctrl.cpp
index 1af665207..4fe2a243d 100644
--- a/host/lib/usrp/dboard/zbx/zbx_lo_ctrl.cpp
+++ b/host/lib/usrp/dboard/zbx/zbx_lo_ctrl.cpp
@@ -18,8 +18,7 @@ zbx_lo_ctrl::zbx_lo_ctrl(zbx_lo_t lo,
const double default_frequency,
const double db_prc_rate,
const bool testing_mode_enabled)
- : _lo(lo)
- , _log_id(ZBX_LO_LOG_ID.at(lo))
+ : _log_id(ZBX_LO_LOG_ID.at(lo))
, _freq(default_frequency)
, _db_prc_rate(db_prc_rate)
, _testing_mode_enabled(testing_mode_enabled)