From 4b69af7ca2fdfca4970353d3524079a6590d589e Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 29 Nov 2021 16:42:55 +0000 Subject: [PATCH] lib,rlc_am_nr: possible fix for ubuntu 16.04 compilation warning --- lib/src/rlc/rlc_am_nr.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/rlc/rlc_am_nr.cc b/lib/src/rlc/rlc_am_nr.cc index 2c1e55a25..ae6741af2 100644 --- a/lib/src/rlc/rlc_am_nr.cc +++ b/lib/src/rlc/rlc_am_nr.cc @@ -21,7 +21,7 @@ #define RLC_AM_NR_WINDOW_SIZE 2048 #define MOD_NR 4096 -#define RX_MOD_BASE_NR(x) (((x)-rx_next) % MOD_NR) +#define RX_MOD_BASE_NR(x) ((((int32_t)x) - (int32_t)rx_next) % MOD_NR) //#define TX_MOD_BASE_NR(x) (((x)-vt_a) % MOD_NR) namespace srsran { @@ -613,7 +613,6 @@ uint32_t rlc_am_nr_rx::get_status_pdu(rlc_am_nr_status_pdu_t* status, uint32_t m status->N_nack = 0; status->ack_sn = rx_next; // Start with the lower end of the window byte_buffer_t tmp_buf; - uint32_t len; uint32_t i = status->ack_sn; while (RX_MOD_BASE_NR(i) <= RX_MOD_BASE_NR(rx_highest_status)) {