]> git.sur5r.net Git - freertos/commitdiff
Remove warnings generated by new features.
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 3 Mar 2008 21:46:29 +0000 (21:46 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 3 Mar 2008 21:46:29 +0000 (21:46 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@225 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/tasks.c

index ad65c144e22f7e331b033ed9c42ee1cf4436425e..ed69e32eed97eaa279fe102c0e4c6e82ebb4e32b 100644 (file)
@@ -268,7 +268,7 @@ register tskTCB *pxTCB;                                                                                                                                                                                             \
  * the stack limit.  Setting configCHECK_FOR_STACK_OVERFLOW to greater than 1\r
  * will also cause the last few stack bytes to be checked to ensure the value\r
  * to which the bytes were set when the task was created have not been \r
- * overwritten.  Note this second test does not guarantee that an overflown\r
+ * overwritten.  Note this second test does not guarantee that an overflowed\r
  * stack will always be recognised.\r
  */\r
 \r
@@ -296,7 +296,7 @@ register tskTCB *pxTCB;                                                                                                                                                                                             \
                /* Is the currently saved stack pointer within the stack limit? */                                                              \\r
                if( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack )                                                                               \\r
                {                                                                                                                                                                                               \\r
-                       vApplicationStackOverflowHook( pxCurrentTCB, pxCurrentTCB->pcTaskName );                                        \\r
+                       vApplicationStackOverflowHook( ( xTaskHandle ) pxCurrentTCB, pxCurrentTCB->pcTaskName );        \\r
                }                                                                                                                                                                                               \\r
        }\r
 \r
@@ -317,17 +317,18 @@ register tskTCB *pxTCB;                                                                                                                                                                                           \
                /* Is the currently saved stack pointer within the stack limit? */                                                                                                                                                      \\r
                if( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack )                                                                                                                                                                       \\r
                {                                                                                                                                                                                                                                                                                       \\r
-                       vApplicationStackOverflowHook( pxCurrentTCB, pxCurrentTCB->pcTaskName );                                                                                                                                \\r
+                       vApplicationStackOverflowHook( ( xTaskHandle ) pxCurrentTCB, pxCurrentTCB->pcTaskName );                                                                                                \\r
                }                                                                                                                                                                                                                                                                                       \\r
                                                                                                                                                                                                                                                                                                        \\r
                /* Has the extremity of the task stack ever been written over? */                                                                                                                                                       \\r
-               if( memcmp( pxCurrentTCB->pxStack, ucExpectedStackBytes, sizeof( ucExpectedStackBytes ) ) != 0 )                                                                                        \\r
+               if( memcmp( ( void * ) pxCurrentTCB->pxStack, ( void * ) ucExpectedStackBytes, sizeof( ucExpectedStackBytes ) ) != 0 )                                          \\r
                {                                                                                                                                                                                                                                                                                       \\r
-                       vApplicationStackOverflowHook( pxCurrentTCB, pxCurrentTCB->pcTaskName );                                                                                                                                \\r
+                       vApplicationStackOverflowHook( ( xTaskHandle ) pxCurrentTCB, pxCurrentTCB->pcTaskName );                                                                                                                                \\r
                }                                                                                                                                                                                                                                                                                       \\r
        }\r
 \r
 #endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */\r
+\r
 /*-----------------------------------------------------------*/\r
 \r
 /*\r
@@ -1859,7 +1860,7 @@ tskTCB *pxNewTCB;
 \r
        unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( void )\r
        {\r
-               return usTaskCheckFreeStackSpace( pxCurrentTCB->pxStack );\r
+               return usTaskCheckFreeStackSpace( ( unsigned portCHAR * ) pxCurrentTCB->pxStack );\r
        }\r
 \r
 #endif\r