Commit 915d3492 authored by Cedric Roux's avatar Cedric Roux

compilation warnings fixes

The previous commit created two new warnings:

    warning: 'avgs' may be used uninitialized in this function
    warning: 'seq_index' may be used uninitialized in this function

This commit removes them.

Maybe it's not the correct solution. To be fixed if needed.
parent 5ba0dc26
...@@ -1174,7 +1174,7 @@ int nr_rx_pusch(PHY_VARS_gNB *gNB, ...@@ -1174,7 +1174,7 @@ int nr_rx_pusch(PHY_VARS_gNB *gNB,
uint8_t aarx, aatx; uint8_t aarx, aatx;
uint32_t nb_re_pusch, bwp_start_subcarrier; uint32_t nb_re_pusch, bwp_start_subcarrier;
int avgs; int avgs = 0;
NR_DL_FRAME_PARMS *frame_parms = &gNB->frame_parms; NR_DL_FRAME_PARMS *frame_parms = &gNB->frame_parms;
nfapi_nr_pusch_pdu_t *rel15_ul = &gNB->ulsch[ulsch_id][0]->harq_processes[harq_pid]->ulsch_pdu; nfapi_nr_pusch_pdu_t *rel15_ul = &gNB->ulsch[ulsch_id][0]->harq_processes[harq_pid]->ulsch_pdu;
......
...@@ -302,7 +302,7 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB, ...@@ -302,7 +302,7 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
int32_t corr_re[1+frame_parms->nb_antennas_rx][2]; int32_t corr_re[1+frame_parms->nb_antennas_rx][2];
int32_t corr_im[1+frame_parms->nb_antennas_rx][2]; int32_t corr_im[1+frame_parms->nb_antennas_rx][2];
//int32_t no_corr = 0; //int32_t no_corr = 0;
int seq_index; int seq_index = 0;
int64_t temp; int64_t temp;
for(i=0;i<nr_sequences;i++){ for(i=0;i<nr_sequences;i++){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment