diff --git a/openair2/UTIL/MATH/oml.h b/openair2/UTIL/MATH/oml.h index 0a0dbd58f0..8e78be3158 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 1b3a3c215b..14aff68cd7 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_idproc[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 );