[rtems commit] sparc64: fix warnings in cpukit/score/cpu
Gedare Bloom
gedare at rtems.org
Mon Oct 13 20:39:31 UTC 2014
Module: rtems
Branch: master
Commit: 805ee4fabcb5c5a41f39dea2c0a1aa7ccc03c831
Changeset: http://git.rtems.org/rtems/commit/?id=805ee4fabcb5c5a41f39dea2c0a1aa7ccc03c831
Author: Gedare Bloom <gedare at rtems.org>
Date: Mon Oct 13 14:54:28 2014 -0400
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(-)
diff --git a/cpukit/score/cpu/sparc64/cpu.c b/cpukit/score/cpu/sparc64/cpu.c
index 6d79a5a..599011b 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 c12e6c7..52a43c6 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 ) \
More information about the vc
mailing list