remove warnings for base classes with no virtual dtors

This commit is contained in:
Francisco Paisana 2020-04-27 14:50:09 +01:00 committed by Francisco Paisana
parent b8e6ba02e4
commit 12b2ea7dde
5 changed files with 4 additions and 5 deletions

View File

@ -40,6 +40,7 @@ public:
const static uint32_t preallocated_log_str_size = 1024;
logger() : pool(16 * 1024) {}
virtual ~logger() = default;
class log_str
{

View File

@ -47,7 +47,6 @@ void threads_print_self();
#include <string>
namespace srslte {
;
class thread
{
@ -64,6 +63,8 @@ public:
other.name = "";
}
virtual ~thread() = default;
thread& operator=(const thread&) = delete;
thread& operator=(thread&&) noexcept = delete;

View File

@ -34,7 +34,6 @@ class prach_worker : srslte::thread
{
public:
prach_worker(uint32_t cc_idx_) : buffer_pool(8), thread("PRACH_WORKER") { cc_idx = cc_idx_; }
~prach_worker();
int init(const srslte_cell_t& cell_,
const srslte_prach_cfg_t& prach_cfg_,

View File

@ -24,8 +24,6 @@
namespace srsenb {
prach_worker::~prach_worker() = default;
int prach_worker::init(const srslte_cell_t& cell_,
const srslte_prach_cfg_t& prach_cfg_,
stack_interface_phy_lte* stack_,

View File

@ -39,7 +39,7 @@ namespace srsue {
typedef _Complex float cf_t;
class phy : public ue_lte_phy_base, public srslte::thread
class phy final : public ue_lte_phy_base, public srslte::thread
{
public:
explicit phy(srslte::logger* logger_) : logger(logger_), workers_pool(MAX_WORKERS), common(), thread("PHY"){};