Skip to content

Commit

Permalink
Adressing MR comments and more fixes
Browse files Browse the repository at this point in the history
- Added missing override specifiers
- Specified CMake policy for FindBoost
- Reintroduced capture of chan variable
  • Loading branch information
nzqo committed Feb 18, 2025
1 parent 832c9be commit 7152711
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions host/cmake/Modules/UHDBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,19 @@ if(${UHD_BOOST_OPTIONAL_COMPONENTS_LEN} GREATER 0)
endif()

if(${UHD_BOOST_REQUIRED_COMPONENTS_LEN} GREATER 0)
# With removal of FindBoost, default to automatically searching
# the upstream BoostConfig.cmake.
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif(POLICY CMP0167)

message(STATUS " Looking for required Boost components...")
find_package(Boost ${UHD_BOOST_MIN_VERSION} QUIET
COMPONENTS ${UHD_BOOST_REQUIRED_COMPONENTS} ${UHD_BOOST_REQUIRED})
endif()



# restore BUILD_SHARED_LIBS, if set
if(BUILD_SHARED_LIBS_SET)
set(BUILD_SHARED_LIBS ${OLD_BUILD_SHARED_LIBS})
Expand Down
1 change: 1 addition & 0 deletions host/lib/rfnoc/radio_control_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ radio_control_impl::radio_control_impl(make_args_ptr make_args)
add_property_resolver({&_samp_rate_in.back(), &_samp_rate_out.back()},
{&_samp_rate_in.back(), &_samp_rate_out.back()},
[this,
chan,
&samp_rate_in = _samp_rate_in.at(chan),
&samp_rate_out = _samp_rate_out.at(chan)]() {
UHD_LOGGER_TRACE(this->get_unique_id())
Expand Down
2 changes: 1 addition & 1 deletion host/lib/rfnoc/rfnoc_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ class rfnoc_graph_impl : public rfnoc_graph
return _graph->to_dot();
}

chdr_w_t get_chdr_width(const size_t mb_index) const
chdr_w_t get_chdr_width(const size_t mb_index) const override
{
UHD_ASSERT_THROW(mb_index < _num_mboards);
return _device->get_mb_iface(mb_index).get_chdr_w();
Expand Down
2 changes: 1 addition & 1 deletion host/tests/rfnoc_block_tests/fft_block_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class fft_mock_reg_iface_t : public mock_reg_iface_t
}
}

void _peek_cb(uint32_t addr, uhd::time_spec_t /*time*/)
void _peek_cb(uint32_t addr, uhd::time_spec_t /*time*/) override
{
if ((addr >= fft_block_control::REG_COMPAT_ADDR)
&& (addr <= fft_block_control::REG_CP_REM_LIST_OCC_ADDR)) {
Expand Down
2 changes: 1 addition & 1 deletion host/tests/rfnoc_block_tests/fft_block_test_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class fft_mock_reg_iface_t : public mock_reg_iface_t
}
}

void _peek_cb(uint32_t addr, uhd::time_spec_t /*time*/)
void _peek_cb(uint32_t addr, uhd::time_spec_t /*time*/) override
{
if (addr >= fft_block_control::REG_RESET_ADDR_V1) {
throw uhd::assertion_error(
Expand Down

0 comments on commit 7152711

Please sign in to comment.