summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2014-10-13 14:54:28 -0400
committerGedare Bloom <gedare@rtems.org>2014-10-13 14:54:28 -0400
commit805ee4fabcb5c5a41f39dea2c0a1aa7ccc03c831 (patch)
treed7e19c255ee72aeafc6dbe563937ead4134a7e60
parentlibcpu/or1k: Fix warnings. (diff)
downloadrtems-805ee4fabcb5c5a41f39dea2c0a1aa7ccc03c831.tar.bz2
sparc64: fix warnings in cpukit/score/cpu
-rw-r--r--cpukit/score/cpu/sparc64/cpu.c3
-rw-r--r--cpukit/score/cpu/sparc64/rtems/score/sparc64.h3
2 files changed, 2 insertions, 4 deletions
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 ) \