diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-04-18 22:01:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-04-18 22:01:39 +0000 |
commit | 159f41c4978a3f166a0d62795089cb89595e108e (patch) | |
tree | 09854d28de5d71e5fce0c856026e00b84ef8119c /cpukit/score/cpu/sparc/rtems/score/sparc.h | |
parent | 2011-04-16 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-159f41c4978a3f166a0d62795089cb89595e108e.tar.bz2 |
2011-04-18 Joel Sherrill <joel.sherrilL@OARcorp.com>
* rtems/score/sparc.h: Remove warnings.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/sparc/rtems/score/sparc.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/score/cpu/sparc/rtems/score/sparc.h b/cpukit/score/cpu/sparc/rtems/score/sparc.h index 9aefb20f4a..1b580de9da 100644 --- a/cpukit/score/cpu/sparc/rtems/score/sparc.h +++ b/cpukit/score/cpu/sparc/rtems/score/sparc.h @@ -212,10 +212,8 @@ void sparc_enable_interrupts(uint32_t); #define sparc_flash_interrupts( _level ) \ do { \ - register uint32_t _ignored = 0; \ - \ sparc_enable_interrupts( (_level) ); \ - _ignored = sparc_disable_interrupts(); \ + _level = sparc_disable_interrupts(); \ } while ( 0 ) #define sparc_get_interrupt_level( _level ) \ |