From 9bd5e5cf034d5416b7e7b21050c7b8780fa0ebd0 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Sun, 23 Feb 2014 20:01:07 +0000 Subject: [PATCH] Cast away a few unused return types to ensure lint/compilers don't generate warnings when the warning level is high. --- FreeRTOS/Source/croutine.c | 2 +- FreeRTOS/Source/portable/MemMang/heap_1.c | 6 +++--- FreeRTOS/Source/portable/MemMang/heap_2.c | 4 ++-- FreeRTOS/Source/portable/MemMang/heap_3.c | 10 +++++----- FreeRTOS/Source/portable/MemMang/heap_4.c | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/FreeRTOS/Source/croutine.c b/FreeRTOS/Source/croutine.c index 686b74df50..aa306a9018 100644 --- a/FreeRTOS/Source/croutine.c +++ b/FreeRTOS/Source/croutine.c @@ -292,7 +292,7 @@ CRCB_t *pxCRCB; have been moved to the pending ready list and the following line is still valid. Also the pvContainer parameter will have been set to NULL so the following lines are also valid. */ - uxListRemove( &( pxCRCB->xGenericListItem ) ); + ( void ) uxListRemove( &( pxCRCB->xGenericListItem ) ); /* Is the co-routine waiting on an event also? */ if( pxCRCB->xEventListItem.pvContainer ) diff --git a/FreeRTOS/Source/portable/MemMang/heap_1.c b/FreeRTOS/Source/portable/MemMang/heap_1.c index 92386de544..8a0806aa73 100644 --- a/FreeRTOS/Source/portable/MemMang/heap_1.c +++ b/FreeRTOS/Source/portable/MemMang/heap_1.c @@ -1,5 +1,5 @@ /* - FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd. + FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. @@ -125,8 +125,8 @@ static uint8_t *pucAlignedHeap = NULL; } traceMALLOC( pvReturn, xWantedSize ); - } - xTaskResumeAll(); + } + ( void ) xTaskResumeAll(); #if( configUSE_MALLOC_FAILED_HOOK == 1 ) { diff --git a/FreeRTOS/Source/portable/MemMang/heap_2.c b/FreeRTOS/Source/portable/MemMang/heap_2.c index e3fab323ed..0ed9648f5b 100644 --- a/FreeRTOS/Source/portable/MemMang/heap_2.c +++ b/FreeRTOS/Source/portable/MemMang/heap_2.c @@ -218,7 +218,7 @@ void *pvReturn = NULL; traceMALLOC( pvReturn, xWantedSize ); } - xTaskResumeAll(); + ( void ) xTaskResumeAll(); #if( configUSE_MALLOC_FAILED_HOOK == 1 ) { @@ -256,7 +256,7 @@ BlockLink_t *pxLink; xFreeBytesRemaining += pxLink->xBlockSize; traceFREE( pv, pxLink->xBlockSize ); } - xTaskResumeAll(); + ( void ) xTaskResumeAll(); } } /*-----------------------------------------------------------*/ diff --git a/FreeRTOS/Source/portable/MemMang/heap_3.c b/FreeRTOS/Source/portable/MemMang/heap_3.c index 706ecdac44..1267273677 100644 --- a/FreeRTOS/Source/portable/MemMang/heap_3.c +++ b/FreeRTOS/Source/portable/MemMang/heap_3.c @@ -1,5 +1,5 @@ /* - FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd. + FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. @@ -71,7 +71,7 @@ * This file can only be used if the linker is configured to to generate * a heap memory area. * - * See heap_1.c, heap_2.c and heap_4.c for alternative implementations, and the + * See heap_1.c, heap_2.c and heap_4.c for alternative implementations, and the * memory management pages of http://www.FreeRTOS.org for more information. */ @@ -98,7 +98,7 @@ void *pvReturn; pvReturn = malloc( xWantedSize ); traceMALLOC( pvReturn, xWantedSize ); } - xTaskResumeAll(); + ( void ) xTaskResumeAll(); #if( configUSE_MALLOC_FAILED_HOOK == 1 ) { @@ -109,7 +109,7 @@ void *pvReturn; } } #endif - + return pvReturn; } /*-----------------------------------------------------------*/ @@ -123,7 +123,7 @@ void vPortFree( void *pv ) free( pv ); traceFREE( pv, 0 ); } - xTaskResumeAll(); + ( void ) xTaskResumeAll(); } } diff --git a/FreeRTOS/Source/portable/MemMang/heap_4.c b/FreeRTOS/Source/portable/MemMang/heap_4.c index b61ac238b8..693afbdab1 100644 --- a/FreeRTOS/Source/portable/MemMang/heap_4.c +++ b/FreeRTOS/Source/portable/MemMang/heap_4.c @@ -271,7 +271,7 @@ void *pvReturn = NULL; traceMALLOC( pvReturn, xWantedSize ); } - xTaskResumeAll(); + ( void ) xTaskResumeAll(); #if( configUSE_MALLOC_FAILED_HOOK == 1 ) { @@ -322,9 +322,9 @@ BlockLink_t *pxLink; /* Add this block to the list of free blocks. */ xFreeBytesRemaining += pxLink->xBlockSize; traceFREE( pv, pxLink->xBlockSize ); - prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) ); + prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) ); } - xTaskResumeAll(); + ( void ) xTaskResumeAll(); } else {