diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-06-22 12:24:33 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-06-22 15:07:02 -0500 |
commit | 548bef02cafec8778f64b4c2348dc828f7cca83e (patch) | |
tree | 4df89984a4b3576fe6379e272f9aa8f99e36e263 /host/tests | |
parent | c399ab8a9b69bca19843eac9ef6cf8e89f816bc4 (diff) | |
download | uhd-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/tests')
-rw-r--r-- | host/tests/rfnoc_block_tests/x4xx_zbx_mpm_mock.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/tests/rfnoc_block_tests/x4xx_zbx_mpm_mock.hpp b/host/tests/rfnoc_block_tests/x4xx_zbx_mpm_mock.hpp index ad47089a5..956e713db 100644 --- a/host/tests/rfnoc_block_tests/x4xx_zbx_mpm_mock.hpp +++ b/host/tests/rfnoc_block_tests/x4xx_zbx_mpm_mock.hpp @@ -137,7 +137,7 @@ public: double rfdc_set_nco_freq(const std::string& trx, const size_t /*db_id*/, const size_t chan, - const double freq) + const double freq) override { BOOST_REQUIRE(trx == "rx" || trx == "tx"); BOOST_REQUIRE(chan < uhd::usrp::zbx::ZBX_NUM_CHANS); @@ -146,7 +146,7 @@ public: } double rfdc_get_nco_freq( - const std::string& trx, const size_t /*db_id*/, const size_t chan) + const std::string& trx, const size_t /*db_id*/, const size_t chan) override { BOOST_REQUIRE(trx == "rx" || trx == "tx"); BOOST_REQUIRE(chan < uhd::usrp::zbx::ZBX_NUM_CHANS); |