mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 00:37:44 -04:00
Fix warning introduced in PR 730 (#735)
The change addresses the following warning: ``` tasks.c:5549:40: warning: assignment discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers] 5549 | pxTaskStatus->pxTopOfStack = pxTCB->pxTopOfStack; | ``` Also add the "Build Posix_GCC Demo for Coverage Test" in the PR checks as coverage test target treats warnings as errors and therefore, will catch such warnings in PR checks. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
b51a37314c
commit
85d2cba801
2 changed files with 6 additions and 1 deletions
2
tasks.c
2
tasks.c
|
@ -5546,7 +5546,7 @@ static void prvCheckTasksWaitingTermination( void )
|
|||
pxTaskStatus->uxCurrentPriority = pxTCB->uxPriority;
|
||||
pxTaskStatus->pxStackBase = pxTCB->pxStack;
|
||||
#if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
|
||||
pxTaskStatus->pxTopOfStack = pxTCB->pxTopOfStack;
|
||||
pxTaskStatus->pxTopOfStack = ( StackType_t * ) pxTCB->pxTopOfStack;
|
||||
pxTaskStatus->pxEndOfStack = pxTCB->pxEndOfStack;
|
||||
#endif
|
||||
pxTaskStatus->xTaskNumber = pxTCB->uxTCBNumber;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue