Fix coverty defects.

master
Fabian Eckermann 3 years ago committed by Fabian Eckermann
parent 5972345c9d
commit 8753ea1be5

@ -318,7 +318,7 @@ inline null<> gmtime_s(...) { return null<>(); }
inline std::tm localtime(std::time_t time) { inline std::tm localtime(std::time_t time) {
struct dispatcher { struct dispatcher {
std::time_t time_; std::time_t time_;
std::tm tm_; std::tm tm_{};
dispatcher(std::time_t t) : time_(t) {} dispatcher(std::time_t t) : time_(t) {}

@ -20,6 +20,7 @@
#include "srsenb/test/common/dummy_classes_nr.h" #include "srsenb/test/common/dummy_classes_nr.h"
#include "srsenb/test/common/rlc_test_dummy.h" #include "srsenb/test/common/rlc_test_dummy.h"
#include "srsenb/test/mac/nr/sched_nr_cfg_generators.h" #include "srsenb/test/mac/nr/sched_nr_cfg_generators.h"
#include "srsran/srslog/srslog.h"
#include <mutex> #include <mutex>
#include <set> #include <set>
#include <srsenb/hdr/stack/mac/common/mac_metrics.h> #include <srsenb/hdr/stack/mac/common/mac_metrics.h>
@ -275,8 +276,7 @@ private:
} }
// Set softbuffer // Set softbuffer
pusch_cfg.grant.tb[0].softbuffer.rx = pusch_cfg.grant.tb[0].softbuffer.rx = &rx_harq_proc[dci.pid].get_softbuffer(dci.ndi, pusch_cfg.grant.tb[0].tbs);
&rx_harq_proc[dci.pid].get_softbuffer(dci.ndi, pusch_cfg.grant.tb[0].tbs);
// Push scheduling results // Push scheduling results
dl_sched.pdcch_ul.push_back(pdcch); dl_sched.pdcch_ul.push_back(pdcch);

Loading…
Cancel
Save