diff --git a/openair1/PHY/LTE_TRANSPORT/dlsch_demodulation.c b/openair1/PHY/LTE_TRANSPORT/dlsch_demodulation.c
index 74caa92f9c182e037af524aada812cfd11bd33e5..e5d912b222b490c9cd08d4f662c043b22e0544c9 100644
--- a/openair1/PHY/LTE_TRANSPORT/dlsch_demodulation.c
+++ b/openair1/PHY/LTE_TRANSPORT/dlsch_demodulation.c
@@ -112,7 +112,9 @@ int rx_pdsch(PHY_VARS_UE *ue,
   int avg_0[2];
   int avg_1[2];
 
+#if UE_TIMING_TRACE
   uint8_t slot = 0;
+#endif
 
   unsigned char aatx,aarx;
 
@@ -251,10 +253,13 @@ int rx_pdsch(PHY_VARS_UE *ue,
     }
   }
 
+#if UE_TIMING_TRACE
   if(symbol > ue->frame_parms.symbols_per_tti>>1)
   {
       slot = 1;
   }
+#endif
+
 #ifdef DEBUG_HARQ
   printf("Demod  dlsch0_harq->pmi_alloc %d\n",  dlsch0_harq->pmi_alloc);
 #endif