From 548bef02cafec8778f64b4c2348dc828f7cca83e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 22 Jun 2021 12:24:33 +0200 Subject: 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 --- host/tests/rfnoc_block_tests/x4xx_zbx_mpm_mock.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/tests') 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); -- cgit v1.2.3