mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-11-16 12:34:29 +00:00
Add -Wconversion in CMakeLists.txt (#712)
Also fix warnings generated by this flag. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
committed by
GitHub
parent
50b2d8fb66
commit
2cdd0e5e55
@@ -421,7 +421,7 @@ static void prvHeapInit( void ) /* PRIVILEGED_FUNCTION */
|
||||
/* pxEnd is used to mark the end of the list of free blocks and is inserted
|
||||
* at the end of the heap space. */
|
||||
uxAddress = ( portPOINTER_SIZE_TYPE ) ( pucAlignedHeap + xTotalHeapSize );
|
||||
uxAddress -= xHeapStructSize;
|
||||
uxAddress -= ( portPOINTER_SIZE_TYPE ) xHeapStructSize;
|
||||
uxAddress &= ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK );
|
||||
pxEnd = ( BlockLink_t * ) uxAddress;
|
||||
pxEnd->xBlockSize = 0;
|
||||
|
||||
Reference in New Issue
Block a user