summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sparc64/rtems/score
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 /cpukit/score/cpu/sparc64/rtems/score
parentlibcpu/or1k: Fix warnings. (diff)
downloadrtems-805ee4fabcb5c5a41f39dea2c0a1aa7ccc03c831.tar.bz2
sparc64: fix warnings in cpukit/score/cpu
Diffstat (limited to 'cpukit/score/cpu/sparc64/rtems/score')
-rw-r--r--cpukit/score/cpu/sparc64/rtems/score/sparc64.h3
1 files changed, 2 insertions, 1 deletions
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 ) \