mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-13 15:15:08 -05:00
Resolved VF parse errors: const pointers.
This commit is contained in:
parent
663ea1fb77
commit
47e6fa7398
2 changed files with 57 additions and 29 deletions
18
tasks.c
18
tasks.c
|
|
@ -5250,7 +5250,14 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
|
||||
BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
|
||||
{
|
||||
TCB_t * const pxTCB = pxMutexHolder;
|
||||
#ifdef VERIFAST
|
||||
/* Reason for rewrite:
|
||||
* VeriFast does not support const pointers.
|
||||
*/
|
||||
TCB_t * pxTCB = pxMutexHolder;
|
||||
#else
|
||||
TCB_t * const pxTCB = pxMutexHolder;
|
||||
#endif /* VERIFAST */
|
||||
BaseType_t xReturn = pdFALSE;
|
||||
|
||||
if( pxMutexHolder != NULL )
|
||||
|
|
@ -5331,7 +5338,14 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder,
|
||||
UBaseType_t uxHighestPriorityWaitingTask )
|
||||
{
|
||||
TCB_t * const pxTCB = pxMutexHolder;
|
||||
#ifdef VERIFAST
|
||||
/* Reason for rewrite:
|
||||
* VeriFast does not support const pointers.
|
||||
*/
|
||||
TCB_t * pxTCB = pxMutexHolder;
|
||||
#else
|
||||
TCB_t * const pxTCB = pxMutexHolder;
|
||||
#endif /* VERIFAST */
|
||||
UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
|
||||
const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue