Fix coverty defects.

This commit is contained in:
Fabian Eckermann 2021-10-26 12:07:59 +02:00 committed by Fabian Eckermann
parent 5972345c9d
commit 8753ea1be5
2 changed files with 3 additions and 3 deletions

View File

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

View File

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