remove warnings for base classes with no virtual dtors

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent b8e6ba02e4
commit 12b2ea7dde

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

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

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

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

@ -39,7 +39,7 @@ namespace srsue {
typedef _Complex float cf_t; 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: public:
explicit phy(srslte::logger* logger_) : logger(logger_), workers_pool(MAX_WORKERS), common(), thread("PHY"){}; explicit phy(srslte::logger* logger_) : logger(logger_), workers_pool(MAX_WORKERS), common(), thread("PHY"){};

Loading…
Cancel
Save