From 805ee4fabcb5c5a41f39dea2c0a1aa7ccc03c831 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Mon, 13 Oct 2014 14:54:28 -0400 Subject: sparc64: fix warnings in cpukit/score/cpu --- cpukit/score/cpu/sparc64/cpu.c | 3 --- cpukit/score/cpu/sparc64/rtems/score/sparc64.h | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'cpukit/score/cpu/sparc64') diff --git a/cpukit/score/cpu/sparc64/cpu.c b/cpukit/score/cpu/sparc64/cpu.c index 6d79a5adb9..599011bf15 100644 --- a/cpukit/score/cpu/sparc64/cpu.c +++ b/cpukit/score/cpu/sparc64/cpu.c @@ -71,7 +71,6 @@ void _CPU_Context_Initialize( ) { uint64_t stack_high; /* highest "stack aligned" address */ - uint32_t the_size; /* * On CPUs with stacks which grow down (i.e. SPARC), we build the stack @@ -81,8 +80,6 @@ void _CPU_Context_Initialize( stack_high = ((uint64_t)(stack_base) + size); stack_high &= ~(CPU_STACK_ALIGNMENT - 1); - the_size = size & ~(CPU_STACK_ALIGNMENT - 1); - /* * See the README in this directory for a diagram of the stack. */ diff --git a/cpukit/score/cpu/sparc64/rtems/score/sparc64.h b/cpukit/score/cpu/sparc64/rtems/score/sparc64.h index c12e6c7b27..52a43c6c5f 100644 --- a/cpukit/score/cpu/sparc64/rtems/score/sparc64.h +++ b/cpukit/score/cpu/sparc64/rtems/score/sparc64.h @@ -321,10 +321,11 @@ void sparc_enable_interrupts(uint32_t); #define sparc_flash_interrupts( _level ) \ do { \ - register uint32_t _ignored = 0; \ + uint32_t _ignored; \ \ sparc_enable_interrupts( (_level) ); \ _ignored = sparc_disable_interrupts(); \ + (void) _ignored; \ } while ( 0 ) #define sparc64_get_interrupt_level( _level ) \ -- cgit v1.2.3