Remove compiler warnings.

This commit is contained in:
Richard Barry 2008-05-20 18:27:07 +00:00
parent 9d1b078a8f
commit 0f7c3939e1

View file

@ -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 );
} }
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -141,6 +141,9 @@ static void prvRecursiveMutexControllingTask( void *pvParameters )
{ {
unsigned portBASE_TYPE ux; unsigned portBASE_TYPE ux;
/* Just to remove compiler warning. */
( void ) pvParameters;
for( ;; ) for( ;; )
{ {
/* Should not be able to 'give' the mutex, as we have not yet 'taken' /* Should not be able to 'give' the mutex, as we have not yet 'taken'
@ -203,6 +206,9 @@ 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
@ -252,6 +258,9 @@ 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