]> git.sur5r.net Git - freertos/commitdiff
Cast away a few unused return types to ensure lint/compilers don't generate warnings...
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 23 Feb 2014 20:01:07 +0000 (20:01 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 23 Feb 2014 20:01:07 +0000 (20:01 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2220 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Source/croutine.c
FreeRTOS/Source/portable/MemMang/heap_1.c
FreeRTOS/Source/portable/MemMang/heap_2.c
FreeRTOS/Source/portable/MemMang/heap_3.c
FreeRTOS/Source/portable/MemMang/heap_4.c

index 686b74df50e5cc1fbf4ca6be89df9a4362817c8b..aa306a90184c6420c0ee49db13ed5c1b45e67f67 100644 (file)
@@ -292,7 +292,7 @@ CRCB_t *pxCRCB;
                                have been moved to the pending ready list and the following\r
                                line is still valid.  Also the pvContainer parameter will have\r
                                been set to NULL so the following lines are also valid. */\r
-                               uxListRemove( &( pxCRCB->xGenericListItem ) );\r
+                               ( void ) uxListRemove( &( pxCRCB->xGenericListItem ) );\r
 \r
                                /* Is the co-routine waiting on an event also? */\r
                                if( pxCRCB->xEventListItem.pvContainer )\r
index 92386de54452be78e254670aa691fbe4cb52d68e..8a0806aa73156b78d04501e9f228d4999b15a6bf 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd. \r
+    FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -125,8 +125,8 @@ static uint8_t *pucAlignedHeap = NULL;
                }\r
 \r
                traceMALLOC( pvReturn, xWantedSize );\r
-       }       \r
-       xTaskResumeAll();\r
+       }\r
+       ( void ) xTaskResumeAll();\r
 \r
        #if( configUSE_MALLOC_FAILED_HOOK == 1 )\r
        {\r
index e3fab323edddb15f038c94667c00469a086fcc23..0ed9648f5b17f3dce355a746f38ea5e1c4c9d26d 100644 (file)
@@ -218,7 +218,7 @@ void *pvReturn = NULL;
 \r
                traceMALLOC( pvReturn, xWantedSize );\r
        }\r
-       xTaskResumeAll();\r
+       ( void ) xTaskResumeAll();\r
 \r
        #if( configUSE_MALLOC_FAILED_HOOK == 1 )\r
        {\r
@@ -256,7 +256,7 @@ BlockLink_t *pxLink;
                        xFreeBytesRemaining += pxLink->xBlockSize;\r
                        traceFREE( pv, pxLink->xBlockSize );\r
                }\r
-               xTaskResumeAll();\r
+               ( void ) xTaskResumeAll();\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
index 706ecdac44264682889750903250129a5dc327c0..1267273677c038635223e5a88ecd86e8728fbe57 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd. \r
+    FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -71,7 +71,7 @@
  * This file can only be used if the linker is configured to to generate\r
  * a heap memory area.\r
  *\r
- * See heap_1.c, heap_2.c and heap_4.c for alternative implementations, and the \r
+ * See heap_1.c, heap_2.c and heap_4.c for alternative implementations, and the\r
  * memory management pages of http://www.FreeRTOS.org for more information.\r
  */\r
 \r
@@ -98,7 +98,7 @@ void *pvReturn;
                pvReturn = malloc( xWantedSize );\r
                traceMALLOC( pvReturn, xWantedSize );\r
        }\r
-       xTaskResumeAll();\r
+       ( void ) xTaskResumeAll();\r
 \r
        #if( configUSE_MALLOC_FAILED_HOOK == 1 )\r
        {\r
@@ -109,7 +109,7 @@ void *pvReturn;
                }\r
        }\r
        #endif\r
-       \r
+\r
        return pvReturn;\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -123,7 +123,7 @@ void vPortFree( void *pv )
                        free( pv );\r
                        traceFREE( pv, 0 );\r
                }\r
-               xTaskResumeAll();\r
+               ( void ) xTaskResumeAll();\r
        }\r
 }\r
 \r
index b61ac238b8ab83b5601f0c34ccb9785fee06dc51..693afbdab1b57f0f3e2714c6ac7574ae11a458b4 100644 (file)
@@ -271,7 +271,7 @@ void *pvReturn = NULL;
 \r
                traceMALLOC( pvReturn, xWantedSize );\r
        }\r
-       xTaskResumeAll();\r
+       ( void ) xTaskResumeAll();\r
 \r
        #if( configUSE_MALLOC_FAILED_HOOK == 1 )\r
        {\r
@@ -322,9 +322,9 @@ BlockLink_t *pxLink;
                                        /* Add this block to the list of free blocks. */\r
                                        xFreeBytesRemaining += pxLink->xBlockSize;\r
                                        traceFREE( pv, pxLink->xBlockSize );\r
-                                       prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );                                     \r
+                                       prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );\r
                                }\r
-                               xTaskResumeAll();\r
+                               ( void ) xTaskResumeAll();\r
                        }\r
                        else\r
                        {\r