From bfe9f4f6db0aee74a17688c928635bb08d98e7c9 Mon Sep 17 00:00:00 2001 From: Lionel Gauthier <lionel.gauthier@eurecom.fr> Date: Thu, 9 Apr 2015 09:22:13 +0000 Subject: [PATCH] patches13/0024-fix-compiler-warning.patch git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7070 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair2/UTIL/MATH/oml.h | 2 +- targets/RT/USER/lte-softmodem.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/openair2/UTIL/MATH/oml.h b/openair2/UTIL/MATH/oml.h index 0a0dbd58f0d..8e78be3158c 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 1b3a3c215b9..14aff68cd75 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 ); -- GitLab