summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:17:42 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:17:42 +0000
commit2e4bc8b4343aa0f6d05fcab83b76a2a045160703 (patch)
tree422022bcf6931359151e93df11f4edc9441261ba
parentchanged signed int to unsigned to eliminate warning (diff)
downloadrtems-2e4bc8b4343aa0f6d05fcab83b76a2a045160703.tar.bz2
initialized variable to eliminate warning
-rw-r--r--c/src/exec/score/cpu/i960/cpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/exec/score/cpu/i960/cpu.h b/c/src/exec/score/cpu/i960/cpu.h
index 5c16e3d414..b8e22942ea 100644
--- a/c/src/exec/score/cpu/i960/cpu.h
+++ b/c/src/exec/score/cpu/i960/cpu.h
@@ -231,7 +231,8 @@ SCORE_EXTERN void *_CPU_Interrupt_stack_high;
#define _CPU_ISR_Set_level( newlevel ) \
{ \
- unsigned32 _mask, _level=(newlevel); \
+ unsigned32 _mask = 0; \
+ unsigned32 _level = (newlevel); \
\
__asm__ volatile ( "ldconst 0x1f0000,%0; \
modpc 0,%0,%1" : "=d" (_mask), "=d" (_level) \
@@ -326,6 +327,7 @@ unsigned32 _CPU_ISR_Get_level( void );
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
{ unsigned32 _search = (_value); \
\
+ (_output) = 0; /* to prevent warnings */ \
__asm__ volatile ( "scanbit %0,%1 " \
: "=d" (_search), "=d" (_output) \
: "0" (_search), "1" (_output) ); \