From a36ccb97a22e47a8b7c6a109713e1822c980ae8b Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Wed, 11 Jan 2017 15:54:54 +0100
Subject: [PATCH] remove 'variable may be used uninitialized' warning

This is not absolutely necessary (the processing is ok),
but the warning is annoying.
---
 openair1/PHY/LTE_TRANSPORT/pucch.c        | 1 +
 openair1/PHY/LTE_TRANSPORT/ulsch_coding.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/openair1/PHY/LTE_TRANSPORT/pucch.c b/openair1/PHY/LTE_TRANSPORT/pucch.c
index 34e64dfd5f7..db671f048c9 100644
--- a/openair1/PHY/LTE_TRANSPORT/pucch.c
+++ b/openair1/PHY/LTE_TRANSPORT/pucch.c
@@ -555,6 +555,7 @@ void generate_pucch2x(int32_t **txdataF,
   N_UL_symb = (fp->Ncp==0) ? 7 : 6;
   data_ind  = 0;
   zptr      = z;
+  nprime    = 0;
   for (ns=(subframe<<1),u=u0,v=v0; ns<(2+(subframe<<1)); ns++,u=u1,v=v1) {
 
     if ((ns&1) == 0)
diff --git a/openair1/PHY/LTE_TRANSPORT/ulsch_coding.c b/openair1/PHY/LTE_TRANSPORT/ulsch_coding.c
index 862c3c0ec07..9571ea6cd52 100644
--- a/openair1/PHY/LTE_TRANSPORT/ulsch_coding.c
+++ b/openair1/PHY/LTE_TRANSPORT/ulsch_coding.c
@@ -234,7 +234,7 @@ uint32_t ulsch_encoding(uint8_t *a,
   PHY_MEASUREMENTS *meas = &ue->measurements;
   LTE_UE_ULSCH_t *ulsch=ue->ulsch[eNB_id];
   LTE_UE_DLSCH_t **dlsch = ue->dlsch[eNB_id];
-  uint16_t rnti;
+  uint16_t rnti = 0xffff;
 
   if (!ulsch) {
     LOG_E(PHY,"Null ulsch ptr %p\n",ulsch);
-- 
GitLab