2010-11-04 Joel Sherrill <joel.sherrill@oarcorp.com>

* libmisc/stackchk/check.c: Make compile again.
	* sapi/src/io.c, score/src/heap.c: Address dead assignment
	issues found by clang.
This commit is contained in:
Joel Sherrill committed 2010-11-04 23:00:04 +00:00
1 parent 16b1546e0b
commit 1123658086
4 files changed
+9 -6

No files matched your search

+6
View File
@@ -1,3 +1,9 @@
2010-11-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Make compile again.
* sapi/src/io.c, score/src/heap.c: Address dead assignment
issues found by clang.
2010-11-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Address casting issue highlighted by clang.
+3 -4
View File
@@ -81,7 +81,7 @@ static inline bool Stack_check_Frame_pointer_in_range(
#if (CPU_STACK_GROWS_UP == TRUE)
#define Stack_check_Get_pattern( _the_stack ) \
((char *)(_the_stack)->area + \
(_the_stack)->size - sizeof( Stack_check_Control ) ))
(_the_stack)->size - sizeof( Stack_check_Control ) )
#define Stack_check_Calculate_used( _low, _size, _high_water ) \
((char *)(_high_water) - (char *)(_low))
@@ -97,8 +97,7 @@ static inline bool Stack_check_Frame_pointer_in_range(
* for the free list into this area.
*/
#define Stack_check_Get_pattern( _the_stack ) \
((char *)(_the_stack)->area \
+ sizeof(Heap_Block) - HEAP_BLOCK_HEADER_SIZE))
((char *)(_the_stack)->area + sizeof(Heap_Block) - HEAP_BLOCK_HEADER_SIZE)
#define Stack_check_Calculate_used( _low, _size, _high_water) \
( ((char *)(_low) + (_size)) - (char *)(_high_water) )
@@ -112,7 +111,7 @@ static inline bool Stack_check_Frame_pointer_in_range(
* Obtain a properly typed pointer to the area to check.
*/
#define Stack_check_Get_pattern_area( _the_stack ) \
((Stack_check_Control *) Stack_check_Get_pattern( _the_stack )
(Stack_check_Control *) Stack_check_Get_pattern( _the_stack )
/*
* The assumption is that if the pattern gets overwritten, the task
-1
View File
@@ -80,7 +80,6 @@ void _IO_Manager_initialization(void)
for ( index = 0 ; index < drivers_in_table ; index++ )
_IO_Driver_address_table[index] = driver_table[index];
number_of_drivers = drivers_in_table;
}
/*
-1
View File
@@ -416,7 +416,6 @@ static Heap_Block *_Heap_Block_allocate_from_end(
uintptr_t const prev_block_size = _Heap_Block_size( prev_block );
block = prev_block;
block_begin = (uintptr_t) block;
block_size += prev_block_size;
}