patches13/0024-fix-compiler-warning.patch

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7070 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Lionel Gauthier
2015-04-09 09:22:13 +00:00
parent 09044dda34
commit bfe9f4f6db
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -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);
+5 -2
View File
@@ -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 );