From: RichardBarry Date: Mon, 3 Mar 2008 21:46:29 +0000 (+0000) Subject: Remove warnings generated by new features. X-Git-Tag: V4.8.0~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a47fe39455bcc89b9b6f2302a9303693e545066f;p=freertos Remove warnings generated by new features. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@225 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/tasks.c b/Source/tasks.c index ad65c144e..ed69e32ee 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -268,7 +268,7 @@ register tskTCB *pxTCB; \ * the stack limit. Setting configCHECK_FOR_STACK_OVERFLOW to greater than 1 * will also cause the last few stack bytes to be checked to ensure the value * to which the bytes were set when the task was created have not been - * overwritten. Note this second test does not guarantee that an overflown + * overwritten. Note this second test does not guarantee that an overflowed * stack will always be recognised. */ @@ -296,7 +296,7 @@ register tskTCB *pxTCB; \ /* Is the currently saved stack pointer within the stack limit? */ \ if( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack ) \ { \ - vApplicationStackOverflowHook( pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ + vApplicationStackOverflowHook( ( xTaskHandle ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } @@ -317,17 +317,18 @@ register tskTCB *pxTCB; \ /* Is the currently saved stack pointer within the stack limit? */ \ if( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack ) \ { \ - vApplicationStackOverflowHook( pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ + vApplicationStackOverflowHook( ( xTaskHandle ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ \ /* Has the extremity of the task stack ever been written over? */ \ - if( memcmp( pxCurrentTCB->pxStack, ucExpectedStackBytes, sizeof( ucExpectedStackBytes ) ) != 0 ) \ + if( memcmp( ( void * ) pxCurrentTCB->pxStack, ( void * ) ucExpectedStackBytes, sizeof( ucExpectedStackBytes ) ) != 0 ) \ { \ - vApplicationStackOverflowHook( pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ + vApplicationStackOverflowHook( ( xTaskHandle ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \ } \ } #endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */ + /*-----------------------------------------------------------*/ /* @@ -1859,7 +1860,7 @@ tskTCB *pxNewTCB; unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( void ) { - return usTaskCheckFreeStackSpace( pxCurrentTCB->pxStack ); + return usTaskCheckFreeStackSpace( ( unsigned portCHAR * ) pxCurrentTCB->pxStack ); } #endif