Remove compiler warnings.

pull/4/head
Richard Barry 17 years ago
parent 9d1b078a8f
commit 0f7c3939e1

@ -130,9 +130,9 @@ void vStartRecursiveMutexTasks( void )
if( xMutex != NULL ) if( xMutex != NULL )
{ {
xTaskCreate( prvRecursiveMutexControllingTask, "Rec1", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle ); xTaskCreate( prvRecursiveMutexControllingTask, ( signed portCHAR * ) "Rec1", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle );
xTaskCreate( prvRecursiveMutexBlockingTask, "Rec2", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle ); xTaskCreate( prvRecursiveMutexBlockingTask, ( signed portCHAR * ) "Rec2", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle );
xTaskCreate( prvRecursiveMutexPollingTask, "Rec3", configMINIMAL_STACK_SIZE, NULL, recmuPOLLING_TASK_PRIORITY, NULL ); xTaskCreate( prvRecursiveMutexPollingTask, ( signed portCHAR * ) "Rec3", configMINIMAL_STACK_SIZE, NULL, recmuPOLLING_TASK_PRIORITY, NULL );
} }
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -140,6 +140,9 @@ void vStartRecursiveMutexTasks( void )
static void prvRecursiveMutexControllingTask( void *pvParameters ) static void prvRecursiveMutexControllingTask( void *pvParameters )
{ {
unsigned portBASE_TYPE ux; unsigned portBASE_TYPE ux;
/* Just to remove compiler warning. */
( void ) pvParameters;
for( ;; ) for( ;; )
{ {
@ -202,7 +205,10 @@ unsigned portBASE_TYPE ux;
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
static void prvRecursiveMutexBlockingTask( void *pvParameters ) static void prvRecursiveMutexBlockingTask( void *pvParameters )
{ {
/* Just to remove compiler warning. */
( void ) pvParameters;
for( ;; ) for( ;; )
{ {
/* Attempt to obtain the mutex. We should block until the /* Attempt to obtain the mutex. We should block until the
@ -251,7 +257,10 @@ static void prvRecursiveMutexBlockingTask( void *pvParameters )
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
static void prvRecursiveMutexPollingTask( void *pvParameters ) static void prvRecursiveMutexPollingTask( void *pvParameters )
{ {
/* Just to remove compiler warning. */
( void ) pvParameters;
for( ;; ) for( ;; )
{ {
/* Keep attempting to obtain the mutex. We should only obtain it when /* Keep attempting to obtain the mutex. We should only obtain it when

Loading…
Cancel
Save