remove warnings related to unused vars and fwd declarations with trivial dtors

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent df06443470
commit b8e6ba02e4

@ -50,6 +50,7 @@ public:
{ {
public: public:
worker(); worker();
~worker() = default;
void setup(uint32_t id, thread_pool* parent, uint32_t prio = 0, uint32_t mask = 255); void setup(uint32_t id, thread_pool* parent, uint32_t prio = 0, uint32_t mask = 255);
uint32_t get_id(); uint32_t get_id();
void release(); void release();

@ -34,6 +34,7 @@ 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_,

@ -69,6 +69,7 @@ public:
class metric_dl class metric_dl
{ {
public: public:
virtual ~metric_dl() = default;
/* Virtual methods for user metric calculation */ /* Virtual methods for user metric calculation */
virtual void set_params(const sched_cell_params_t& cell_params_) = 0; virtual void set_params(const sched_cell_params_t& cell_params_) = 0;
virtual void sched_users(std::map<uint16_t, sched_ue>& ue_db, dl_sf_sched_itf* tti_sched) = 0; virtual void sched_users(std::map<uint16_t, sched_ue>& ue_db, dl_sf_sched_itf* tti_sched) = 0;
@ -77,6 +78,7 @@ public:
class metric_ul class metric_ul
{ {
public: public:
virtual ~metric_ul() = default;
/* Virtual methods for user metric calculation */ /* Virtual methods for user metric calculation */
virtual void set_params(const sched_cell_params_t& cell_params_) = 0; virtual void set_params(const sched_cell_params_t& cell_params_) = 0;
virtual void sched_users(std::map<uint16_t, sched_ue>& ue_db, ul_sf_sched_itf* tti_sched) = 0; virtual void sched_users(std::map<uint16_t, sched_ue>& ue_db, ul_sf_sched_itf* tti_sched) = 0;

@ -33,6 +33,7 @@ class sched::carrier_sched
{ {
public: public:
explicit carrier_sched(rrc_interface_mac* rrc_, std::map<uint16_t, sched_ue>* ue_db_, uint32_t enb_cc_idx_); explicit carrier_sched(rrc_interface_mac* rrc_, std::map<uint16_t, sched_ue>* ue_db_, uint32_t enb_cc_idx_);
~carrier_sched();
void reset(); void reset();
void carrier_cfg(const sched_cell_params_t& sched_params_); void carrier_cfg(const sched_cell_params_t& sched_params_);
void set_dl_tti_mask(uint8_t* tti_mask, uint32_t nof_sfs); void set_dl_tti_mask(uint8_t* tti_mask, uint32_t nof_sfs);

@ -24,6 +24,8 @@
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_,

@ -268,6 +268,8 @@ sched::carrier_sched::carrier_sched(rrc_interface_mac* rrc_,
sf_dl_mask.resize(1, 0); sf_dl_mask.resize(1, 0);
} }
sched::carrier_sched::~carrier_sched() {}
void sched::carrier_sched::reset() void sched::carrier_sched::reset()
{ {
ra_sched_ptr.reset(); ra_sched_ptr.reset();

@ -1287,7 +1287,7 @@ void rrc::ue::handle_rrc_reconf_complete(rrc_conn_recfg_complete_s* msg, srslte:
.rrc_conn_recfg_r8() .rrc_conn_recfg_r8()
.rr_cfg_ded.drb_to_add_mod_list[0] .rr_cfg_ded.drb_to_add_mod_list[0]
.lc_ch_cfg.ul_specific_params.lc_ch_group; .lc_ch_cfg.ul_specific_params.lc_ch_group;
for (const std::pair<uint8_t, erab_t>& erab_pair : erabs) { for (const std::pair<const uint8_t, erab_t>& erab_pair : erabs) {
parent->mac->bearer_ue_cfg(rnti, erab_pair.second.id - 2, &bearer_cfg); parent->mac->bearer_ue_cfg(rnti, erab_pair.second.id - 2, &bearer_cfg);
} }
@ -1883,7 +1883,7 @@ void rrc::ue::send_connection_reconf(srslte::unique_byte_buffer_t pdu)
// Configure all DRBs // Configure all DRBs
uint8_t vec_idx = 0; uint8_t vec_idx = 0;
for (const std::pair<uint8_t, erab_t>& erab_id_pair : erabs) { for (const std::pair<const uint8_t, erab_t>& erab_id_pair : erabs) {
const erab_t& erab = erab_id_pair.second; const erab_t& erab = erab_id_pair.second;
uint8_t drb_id = erab.id - 4; uint8_t drb_id = erab.id - 4;
uint8_t lcid = erab.id - 2; uint8_t lcid = erab.id - 2;

@ -92,8 +92,6 @@ private:
ss_srb_interface* syssim = nullptr; ss_srb_interface* syssim = nullptr;
byte_buffer_pool* pool = nullptr; byte_buffer_pool* pool = nullptr;
int drb_fd = 0;
}; };
#endif // SRSUE_TTCN3_DRB_INTERFACE_H #endif // SRSUE_TTCN3_DRB_INTERFACE_H

@ -157,7 +157,6 @@ private:
ss_srb_interface* syssim = nullptr; ss_srb_interface* syssim = nullptr;
byte_buffer_pool* pool = nullptr; byte_buffer_pool* pool = nullptr;
int srb_fd = 0;
// struct sctp_sndrcvinfo sri = {}; // struct sctp_sndrcvinfo sri = {};
// struct sockaddr_in client_addr; // struct sockaddr_in client_addr;
}; };

@ -598,7 +598,6 @@ private:
} }
} }
phy_interface_syssim* phy = nullptr;
ss_sys_interface* syssim = nullptr; ss_sys_interface* syssim = nullptr;
byte_buffer_pool* pool = nullptr; byte_buffer_pool* pool = nullptr;
}; };

Loading…
Cancel
Save