diff --git a/openair2/UTIL/MATH/oml.h b/openair2/UTIL/MATH/oml.h
index 0a0dbd58f0d2afeacdfffcdf2ab00d3abb117f15..8e78be3158c770af990972809f3320046ab616df 100644
--- a/openair2/UTIL/MATH/oml.h
+++ b/openair2/UTIL/MATH/oml.h
@@ -66,7 +66,7 @@ void set_taus_seed(unsigned int seed_type);
 * \note 
 * @ingroup  _oml
 */
-inline unsigned int taus(unsigned int comp);
+unsigned int taus(unsigned int comp);
 
 
 /*! \fn void init_seeds(int seed);
diff --git a/targets/RT/USER/lte-softmodem.c b/targets/RT/USER/lte-softmodem.c
index 1b3a3c215b94513f3a5a5ddb86a807b65d5ffdb7..14aff68cd759afeae5206d2562b13b9c512c8f0c 100644
--- a/targets/RT/USER/lte-softmodem.c
+++ b/targets/RT/USER/lte-softmodem.c
@@ -1282,7 +1282,6 @@ void init_eNB_proc(void)
 void kill_eNB_proc(void)
 {
   int *status;
-  int result;
 
   for (int CC_id=0; CC_id<MAX_NUM_CCs; CC_id++)
     for (int i=0; i<NUM_ENB_THREADS; i++) {
@@ -1297,7 +1296,7 @@ void kill_eNB_proc(void)
 #ifdef DEBUG_THREADS
       printf( "Joining eNB TX CC_id %d thread %d...\n", CC_id, i );
 #endif
-      result = pthread_join( PHY_vars_eNB_g[0][CC_id]->proc[i].pthread_tx, (void**)&status );
+      int result = pthread_join( PHY_vars_eNB_g[0][CC_id]->proc[i].pthread_tx, (void**)&status );
 
 #ifdef DEBUG_THREADS
       if (result != 0) {
@@ -1309,6 +1308,8 @@ void kill_eNB_proc(void)
           printf( "The thread was killed. No status available.\n" );
         }
       }
+#else
+      UNUSED(result)
 #endif
 
 #ifdef DEBUG_THREADS
@@ -1333,6 +1334,8 @@ void kill_eNB_proc(void)
           printf( "The thread was killed. No status available.\n" );
         }
       }
+#else
+      UNUSED(result)
 #endif
 
       pthread_mutex_destroy( &PHY_vars_eNB_g[0][CC_id]->proc[i].mutex_tx );