From 112365808642f0eeb2d2a8a156e5d6e64cd92067 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 4 Nov 2010 23:00:04 +0000 Subject: 2010-11-04 Joel Sherrill * libmisc/stackchk/check.c: Make compile again. * sapi/src/io.c, score/src/heap.c: Address dead assignment issues found by clang. --- cpukit/libmisc/stackchk/check.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cpukit/libmisc/stackchk/check.c') diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index d8783ca96a..d2c0b1001b 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -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 -- cgit v1.2.3