From 9066bf2085440eb7fd65156685073a6de87e6292 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 26 Oct 2009 07:58:21 +0000 Subject: Eliminate unused vars. --- testsuites/libtests/malloctest/init.c | 13 ++++--------- testsuites/libtests/termios01/init.c | 4 ---- testsuites/libtests/termios01/termios_testdriver.c | 2 -- 3 files changed, 4 insertions(+), 15 deletions(-) (limited to 'testsuites/libtests') diff --git a/testsuites/libtests/malloctest/init.c b/testsuites/libtests/malloctest/init.c index 3eea432d5a..395f39ff45 100644 --- a/testsuites/libtests/malloctest/init.c +++ b/testsuites/libtests/malloctest/init.c @@ -133,7 +133,7 @@ static void test_free( void *addr ) static void test_heap_cases_1(void) { - void *p1, *p2, *p3, *p4; + void *p1, *p2, *p3; intptr_t u1, u2; Heap_Resize_status rsc; @@ -216,8 +216,9 @@ static void test_check_alloc( uintptr_t const alloc_area_begin = _Heap_Align_down( alloc_begin, page_size ); uintptr_t const alloc_area_offset = alloc_begin - alloc_area_begin; +#if UNUSED uintptr_t const alloc_area_size = alloc_area_offset + alloc_size; - +#endif Heap_Block *block = _Heap_Block_of_alloc_area( alloc_area_begin, page_size ); uintptr_t const block_begin = (uintptr_t ) block; uintptr_t const block_size = _Heap_Block_size( block ); @@ -381,8 +382,6 @@ static void test_heap_do_initialize( static void test_heap_initialize(void) { - uintptr_t rv = 0; - puts( "run tests for _Heap_Initialize()" ); test_heap_do_initialize( TEST_HEAP_SIZE, 0, true ); @@ -870,8 +869,6 @@ static void test_heap_resize_block(void) { void *p1, *p2, *p3; uintptr_t new_alloc_size = 0; - uintptr_t old_size = 0; - uintptr_t new_size = 0; Heap_Block *block = NULL; puts( "run tests for _Heap_Resize_Block()" ); @@ -930,8 +927,6 @@ static void test_heap_resize_block(void) static void test_heap_extend(void) { - void *p1, *p2, *p3, *p4; - uint32_t u1, u2; bool ret; /* @@ -1015,7 +1010,7 @@ static void test_protected_heap_info(void) */ static void test_posix_memalign(void) { - void *p1, *p2; + void *p1; int i; int sc; int maximumShift; diff --git a/testsuites/libtests/termios01/init.c b/testsuites/libtests/termios01/init.c index bde0c7e295..dba3a4791e 100644 --- a/testsuites/libtests/termios01/init.c +++ b/testsuites/libtests/termios01/init.c @@ -220,7 +220,6 @@ void test_termios_set_baud( { int sc; int i; - int number; struct termios attr; puts( "Test termios setting device baud rate..." ); @@ -259,7 +258,6 @@ void test_termios_set_charsize( { int sc; int i; - int number; struct termios attr; puts( @@ -301,7 +299,6 @@ void test_termios_set_parity( { int sc; int i; - int number; struct termios attr; puts( @@ -343,7 +340,6 @@ void test_termios_set_stop_bits( { int sc; int i; - rtems_termios_baud_t number; struct termios attr; puts( diff --git a/testsuites/libtests/termios01/termios_testdriver.c b/testsuites/libtests/termios01/termios_testdriver.c index ba3e46aaf6..49e96edb25 100644 --- a/testsuites/libtests/termios01/termios_testdriver.c +++ b/testsuites/libtests/termios01/termios_testdriver.c @@ -55,10 +55,8 @@ int termios_test_driver_set_attributes( const struct termios *t ) { - uint32_t ulBaudDivisor; int baud_requested; int number; - rtems_interrupt_level Irql; const char *parity = "NONE"; const char *char_size = "5"; const char *stop = "NONE"; -- cgit v1.2.3