Skip to content

Commit aedef75

Browse files
committed
Fix compiler warnings
1 parent 436f256 commit aedef75

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_pthread.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static void prvExitThread( void )
102102
pthread_internal_t * pxThread = ( pthread_internal_t * ) pthread_self();
103103

104104
vTaskSuspendAll();
105+
105106
/* If this thread is joinable, wait for a call to pthread_join. */
106107
if( pthreadIS_JOINABLE( pxThread->xAttr.usSchedPriorityDetachState ) )
107108
{
@@ -362,7 +363,7 @@ int pthread_create( pthread_t * thread,
362363
}
363364

364365
/* End the critical section. */
365-
xTaskResumeAll();
366+
( void ) xTaskResumeAll();
366367
}
367368

368369
return iStatus;
@@ -470,7 +471,7 @@ int pthread_join( pthread_t pthread,
470471
vPortFree( pxThread );
471472

472473
/* End the critical section. */
473-
xTaskResumeAll();
474+
( void ) xTaskResumeAll();
474475
}
475476

476477
return iStatus;
@@ -529,7 +530,7 @@ int pthread_detach(pthread_t pthread)
529530
}
530531

531532
/* End the critical section. */
532-
xTaskResumeAll();
533+
( void ) xTaskResumeAll();
533534
}
534535

535536
return iStatus;

0 commit comments

Comments
 (0)