From 98f29961bc905be04e0b1dc0c674f7d731ab30e6 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Mon, 2 Aug 2021 18:00:32 +0200 Subject: [PATCH] Fix old GCC compilation --- lib/include/srsran/common/phy_cfg_nr_default.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/include/srsran/common/phy_cfg_nr_default.h b/lib/include/srsran/common/phy_cfg_nr_default.h index 953086ca8..b5758dd8f 100644 --- a/lib/include/srsran/common/phy_cfg_nr_default.h +++ b/lib/include/srsran/common/phy_cfg_nr_default.h @@ -40,7 +40,7 @@ public: R_CARRIER_CUSTOM_20MHZ, R_CARRIER_COUNT } carrier = R_CARRIER_CUSTOM_10MHZ; - const std::array R_CARRIER_STRING = {"10MHz", "20MHz"}; + const std::array R_CARRIER_STRING = {{"10MHz", "20MHz"}}; enum { /** @@ -54,7 +54,7 @@ public: R_TDD_FR1_15_1, R_TDD_COUNT, } tdd = R_TDD_CUSTOM_6_4; - const std::array R_TDD_STRING = {"6D+4U", "FR1.15-1"}; + const std::array R_TDD_STRING = {{"6D+4U", "FR1.15-1"}}; enum { /** @@ -85,7 +85,7 @@ public: R_PDSCH_COUNT } pdsch = R_PDSCH_DEFAULT; - const std::array R_PDSCH_STRING = {"default", "ts38101/5.2-1"}; + const std::array R_PDSCH_STRING = {{"default", "ts38101/5.2-1"}}; enum { /** @@ -129,7 +129,7 @@ public: } prach = R_PRACH_DEFAULT_LTE; reference_cfg_t() = default; - reference_cfg_t(const std::string& args); + explicit reference_cfg_t(const std::string& args); }; phy_cfg_nr_default_t(const reference_cfg_t& reference_cfg);