mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-23 17:38:23 +08:00
Remove casts that were generating warnings (even though the casts were added to remove warnings with some compilers).
This commit is contained in:
@ -807,7 +807,7 @@ signed portCHAR *pcOriginalReadPosition;
|
||||
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
|
||||
{
|
||||
portENTER_CRITICAL();
|
||||
vTaskPriorityInherit( ( void * const ) pxQueue->pxMutexHolder );
|
||||
vTaskPriorityInherit( ( void * ) pxQueue->pxMutexHolder );
|
||||
portEXIT_CRITICAL();
|
||||
}
|
||||
}
|
||||
@ -985,7 +985,7 @@ static void prvCopyDataToQueue( xQUEUE *pxQueue, const void *pvItemToQueue, port
|
||||
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
|
||||
{
|
||||
/* The mutex is no longer being held. */
|
||||
vTaskPriorityDisinherit( ( void * const ) pxQueue->pxMutexHolder );
|
||||
vTaskPriorityDisinherit( ( void * ) pxQueue->pxMutexHolder );
|
||||
pxQueue->pxMutexHolder = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -1339,7 +1339,7 @@ unsigned portBASE_TYPE uxNumberOfTasks;
|
||||
{
|
||||
portENTER_CRITICAL();
|
||||
{
|
||||
pcTraceBuffer = ( volatile signed portCHAR * volatile )pcBuffer;
|
||||
pcTraceBuffer = ( signed portCHAR * )pcBuffer;
|
||||
pcTraceBufferStart = pcBuffer;
|
||||
pcTraceBufferEnd = pcBuffer + ( ulBufferSize - tskSIZE_OF_EACH_TRACE_LINE );
|
||||
xTracing = pdTRUE;
|
||||
|
Reference in New Issue
Block a user