From 2ebc0728bfce791fd978f088dc7baa6139385298 Mon Sep 17 00:00:00 2001 From: RichardBarry Date: Tue, 20 May 2008 18:27:07 +0000 Subject: [PATCH] Remove compiler warnings. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@370 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/Common/Minimal/recmutex.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Demo/Common/Minimal/recmutex.c b/Demo/Common/Minimal/recmutex.c index e7de988c0..d8d5e9489 100644 --- a/Demo/Common/Minimal/recmutex.c +++ b/Demo/Common/Minimal/recmutex.c @@ -130,9 +130,9 @@ void vStartRecursiveMutexTasks( void ) if( xMutex != NULL ) { - xTaskCreate( prvRecursiveMutexControllingTask, "Rec1", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle ); - xTaskCreate( prvRecursiveMutexBlockingTask, "Rec2", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle ); - xTaskCreate( prvRecursiveMutexPollingTask, "Rec3", configMINIMAL_STACK_SIZE, NULL, recmuPOLLING_TASK_PRIORITY, NULL ); + xTaskCreate( prvRecursiveMutexControllingTask, ( signed portCHAR * ) "Rec1", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle ); + xTaskCreate( prvRecursiveMutexBlockingTask, ( signed portCHAR * ) "Rec2", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle ); + 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 ) { unsigned portBASE_TYPE ux; + + /* Just to remove compiler warning. */ + ( void ) pvParameters; for( ;; ) { @@ -202,7 +205,10 @@ unsigned portBASE_TYPE ux; /*-----------------------------------------------------------*/ static void prvRecursiveMutexBlockingTask( void *pvParameters ) -{ +{ + /* Just to remove compiler warning. */ + ( void ) pvParameters; + for( ;; ) { /* Attempt to obtain the mutex. We should block until the @@ -251,7 +257,10 @@ static void prvRecursiveMutexBlockingTask( void *pvParameters ) /*-----------------------------------------------------------*/ static void prvRecursiveMutexPollingTask( void *pvParameters ) -{ +{ + /* Just to remove compiler warning. */ + ( void ) pvParameters; + for( ;; ) { /* Keep attempting to obtain the mutex. We should only obtain it when -- 2.39.5