diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-08 13:27:52 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:18:41 -0600 |
commit | 6da4e7622be4f70956a755229bbe90551f8e5f1a (patch) | |
tree | b772ebe7dbe7c1fef21ce47d783c424a09863ea2 /host/tests | |
parent | 07f591aea9d3849a25e50428aeeb83d7aa641b7e (diff) | |
download | uhd-6da4e7622be4f70956a755229bbe90551f8e5f1a.tar.gz uhd-6da4e7622be4f70956a755229bbe90551f8e5f1a.tar.bz2 uhd-6da4e7622be4f70956a755229bbe90551f8e5f1a.zip |
tests: Remove unused constants
This fixes some clang warnings.
Diffstat (limited to 'host/tests')
-rw-r--r-- | host/tests/common/mock_transport.hpp | 3 | ||||
-rw-r--r-- | host/tests/offload_io_srv_test.cpp | 1 | ||||
-rw-r--r-- | host/tests/rfnoc_block_tests/addsub_block_test.cpp | 3 | ||||
-rw-r--r-- | host/tests/rfnoc_block_tests/moving_average_block_test.cpp | 6 | ||||
-rw-r--r-- | host/tests/rfnoc_block_tests/null_block_test.cpp | 6 | ||||
-rw-r--r-- | host/tests/rfnoc_block_tests/vector_iir_block_test.cpp | 2 | ||||
-rw-r--r-- | host/tests/rfnoc_block_tests/window_block_test.cpp | 1 | ||||
-rw-r--r-- | host/tests/streamer_benchmark.cpp | 1 |
8 files changed, 0 insertions, 23 deletions
diff --git a/host/tests/common/mock_transport.hpp b/host/tests/common/mock_transport.hpp index 1f3609843..ecca432fc 100644 --- a/host/tests/common/mock_transport.hpp +++ b/host/tests/common/mock_transport.hpp @@ -237,7 +237,6 @@ public: uint16_t dst_addr, uint16_t src_addr, uint32_t credits) - : _credits(credits) { _send_addr = (src_addr << 16) | (dst_addr << 0); _recv_addr = (dst_addr << 16) | (src_addr << 0); @@ -374,10 +373,8 @@ public: private: uint32_t _send_addr; uint32_t _recv_addr; - uint32_t _credits; recv_io_if::sptr _recv_if; boost::lockfree::spsc_queue<uint32_t, boost::lockfree::capacity<8>> _msg_queue; - uint32_t _seqno = 0; }; }} // namespace uhd::transport diff --git a/host/tests/offload_io_srv_test.cpp b/host/tests/offload_io_srv_test.cpp index c5ee20488..7558a1bda 100644 --- a/host/tests/offload_io_srv_test.cpp +++ b/host/tests/offload_io_srv_test.cpp @@ -145,7 +145,6 @@ private: constexpr auto RECV_ONLY = offload_io_service::RECV_ONLY; constexpr auto SEND_ONLY = offload_io_service::SEND_ONLY; -constexpr auto BOTH_SEND_AND_RECV = offload_io_service::BOTH_SEND_AND_RECV; constexpr auto POLL = offload_io_service::POLL; constexpr auto BLOCK = offload_io_service::BLOCK; diff --git a/host/tests/rfnoc_block_tests/addsub_block_test.cpp b/host/tests/rfnoc_block_tests/addsub_block_test.cpp index 23bdbde20..982790024 100644 --- a/host/tests/rfnoc_block_tests/addsub_block_test.cpp +++ b/host/tests/rfnoc_block_tests/addsub_block_test.cpp @@ -25,9 +25,6 @@ noc_block_base::make_args_t::~make_args_t() = default; * object, all of which are accessible to the test case. The instance of the * object is destroyed at the end of each test case. */ -constexpr size_t MAX_NUM_COEFFS = 3000; -constexpr size_t DEFAULT_MTU = 8000; - struct addsub_block_fixture { addsub_block_fixture() diff --git a/host/tests/rfnoc_block_tests/moving_average_block_test.cpp b/host/tests/rfnoc_block_tests/moving_average_block_test.cpp index 9957dcbc1..e492dde07 100644 --- a/host/tests/rfnoc_block_tests/moving_average_block_test.cpp +++ b/host/tests/rfnoc_block_tests/moving_average_block_test.cpp @@ -21,12 +21,6 @@ using namespace uhd::rfnoc; // Redeclare this here, since it's only defined outside of UHD_API noc_block_base::make_args_t::~make_args_t() = default; -namespace { - -constexpr size_t DEFAULT_MTU = 8000; - -} // namespace - BOOST_AUTO_TEST_CASE(test_moving_average_block) { node_accessor_t node_accessor{}; diff --git a/host/tests/rfnoc_block_tests/null_block_test.cpp b/host/tests/rfnoc_block_tests/null_block_test.cpp index b6eddd62a..f21f00c2c 100644 --- a/host/tests/rfnoc_block_tests/null_block_test.cpp +++ b/host/tests/rfnoc_block_tests/null_block_test.cpp @@ -20,12 +20,6 @@ using namespace uhd::rfnoc; // Redeclare this here, since it's only defined outside of UHD_API noc_block_base::make_args_t::~make_args_t() = default; -namespace { - -constexpr size_t DEFAULT_MTU = 8000; - -} // namespace - BOOST_AUTO_TEST_CASE(test_null_block) { node_accessor_t node_accessor{}; diff --git a/host/tests/rfnoc_block_tests/vector_iir_block_test.cpp b/host/tests/rfnoc_block_tests/vector_iir_block_test.cpp index 8721d7bb5..ce0473e19 100644 --- a/host/tests/rfnoc_block_tests/vector_iir_block_test.cpp +++ b/host/tests/rfnoc_block_tests/vector_iir_block_test.cpp @@ -36,7 +36,6 @@ class vector_iir_mock_reg_iface_t : public mock_reg_iface_t { public: vector_iir_mock_reg_iface_t(size_t num_chans, uint16_t max_delay) - : _num_chans(num_chans) { for (size_t chan = 0; chan < num_chans; chan++) { _max_delays.push_back(max_delay); @@ -65,7 +64,6 @@ public: } private: - const size_t _num_chans; std::vector<uint16_t> _max_delays; std::vector<uint16_t> _delays; }; diff --git a/host/tests/rfnoc_block_tests/window_block_test.cpp b/host/tests/rfnoc_block_tests/window_block_test.cpp index a8fcb5db0..26978464b 100644 --- a/host/tests/rfnoc_block_tests/window_block_test.cpp +++ b/host/tests/rfnoc_block_tests/window_block_test.cpp @@ -101,7 +101,6 @@ private: * case. The instance of the object is destroyed at the end of each test * case. */ -constexpr size_t MAX_LEN = 3000; constexpr size_t DEFAULT_MTU = 8000; constexpr size_t NUM_CHANS = 4; static const std::vector<size_t> MAX_LENS{3000, 2500, 15, 666}; diff --git a/host/tests/streamer_benchmark.cpp b/host/tests/streamer_benchmark.cpp index bc427b29a..a11db3e68 100644 --- a/host/tests/streamer_benchmark.cpp +++ b/host/tests/streamer_benchmark.cpp @@ -25,7 +25,6 @@ using namespace uhd::transport; static const double TICK_RATE = 100e6; static const double SAMP_RATE = 10e6; -static const size_t FRAME_SIZE = 1000; static const double SCALE_FACTOR = 2; /*! |