]> git.sur5r.net Git - freertos/commitdiff
Remove compiler warnings.
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 20 May 2008 18:27:07 +0000 (18:27 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 20 May 2008 18:27:07 +0000 (18:27 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@370 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/Common/Minimal/recmutex.c

index e7de988c0ca9930a77f94db3e638acd1553cf6af..d8d5e94892935a492843361052abf0483ddc35a7 100644 (file)
@@ -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;
+\r
+       /* Just to remove compiler warning. */\r
+       ( void ) pvParameters;\r
 
        for( ;; )
        {
@@ -202,7 +205,10 @@ unsigned portBASE_TYPE ux;
 /*-----------------------------------------------------------*/
 
 static void prvRecursiveMutexBlockingTask( void *pvParameters )
-{
+{\r
+       /* Just to remove compiler warning. */\r
+       ( void ) pvParameters;\r
+
        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 )
-{
+{\r
+       /* Just to remove compiler warning. */
+       ( void ) pvParameters;
+\r
        for( ;; )
        {
                /* Keep attempting to obtain the mutex.  We should only obtain it when