mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Remove casts that were generating warnings (even though the casts were added to remove warnings with some compilers).
This commit is contained in:
parent
61efe2504c
commit
79dd981500
|
@ -807,7 +807,7 @@ signed portCHAR *pcOriginalReadPosition;
|
||||||
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
|
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
|
||||||
{
|
{
|
||||||
portENTER_CRITICAL();
|
portENTER_CRITICAL();
|
||||||
vTaskPriorityInherit( ( void * const ) pxQueue->pxMutexHolder );
|
vTaskPriorityInherit( ( void * ) pxQueue->pxMutexHolder );
|
||||||
portEXIT_CRITICAL();
|
portEXIT_CRITICAL();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -985,7 +985,7 @@ static void prvCopyDataToQueue( xQUEUE *pxQueue, const void *pvItemToQueue, port
|
||||||
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
|
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
|
||||||
{
|
{
|
||||||
/* The mutex is no longer being held. */
|
/* The mutex is no longer being held. */
|
||||||
vTaskPriorityDisinherit( ( void * const ) pxQueue->pxMutexHolder );
|
vTaskPriorityDisinherit( ( void * ) pxQueue->pxMutexHolder );
|
||||||
pxQueue->pxMutexHolder = NULL;
|
pxQueue->pxMutexHolder = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1339,7 +1339,7 @@ unsigned portBASE_TYPE uxNumberOfTasks;
|
||||||
{
|
{
|
||||||
portENTER_CRITICAL();
|
portENTER_CRITICAL();
|
||||||
{
|
{
|
||||||
pcTraceBuffer = ( volatile signed portCHAR * volatile )pcBuffer;
|
pcTraceBuffer = ( signed portCHAR * )pcBuffer;
|
||||||
pcTraceBufferStart = pcBuffer;
|
pcTraceBufferStart = pcBuffer;
|
||||||
pcTraceBufferEnd = pcBuffer + ( ulBufferSize - tskSIZE_OF_EACH_TRACE_LINE );
|
pcTraceBufferEnd = pcBuffer + ( ulBufferSize - tskSIZE_OF_EACH_TRACE_LINE );
|
||||||
xTracing = pdTRUE;
|
xTracing = pdTRUE;
|
||||||
|
|
Loading…
Reference in a new issue