From 363b974a5c4fe798c7cd446155a043c037403b10 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Fri, 15 Feb 2008 13:44:06 +0000 Subject: [PATCH] Remove casts that were generating warnings (even though the casts were added to remove warnings with some compilers). git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@191 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Source/queue.c | 4 ++-- Source/tasks.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/queue.c b/Source/queue.c index dd5ec8649..578181c37 100644 --- a/Source/queue.c +++ b/Source/queue.c @@ -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; } } diff --git a/Source/tasks.c b/Source/tasks.c index 7063ab80c..5eaebe2ab 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -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; -- 2.39.5