From 20c5ea7d171a065b2c92eb2506584a6ae226a053 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 8 Jun 2020 12:16:18 +0100 Subject: [PATCH] Fix warning with GCC 10.1 with EEA/EIA prefrence list. --- srsenb/hdr/stack/rrc/rrc_config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srsenb/hdr/stack/rrc/rrc_config.h b/srsenb/hdr/stack/rrc/rrc_config.h index 81233322d..ac39e8229 100644 --- a/srsenb/hdr/stack/rrc/rrc_config.h +++ b/srsenb/hdr/stack/rrc/rrc_config.h @@ -26,6 +26,7 @@ #include "srslte/asn1/rrc_asn1.h" #include "srslte/common/security.h" #include "srslte/interfaces/enb_rrc_interface_types.h" +#include namespace srsenb { @@ -62,8 +63,8 @@ struct rrc_cfg_t { bool enable_mbsfn; uint16_t mbms_mcs; uint32_t inactivity_timeout_ms; - srslte::CIPHERING_ALGORITHM_ID_ENUM eea_preference_list[srslte::CIPHERING_ALGORITHM_ID_N_ITEMS]; - srslte::INTEGRITY_ALGORITHM_ID_ENUM eia_preference_list[srslte::INTEGRITY_ALGORITHM_ID_N_ITEMS]; + std::array eea_preference_list; + std::array eia_preference_list; bool meas_cfg_present = false; srslte_cell_t cell; cell_list_t cell_list;