From 2e4bc8b4343aa0f6d05fcab83b76a2a045160703 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 7 Apr 1997 21:17:42 +0000 Subject: initialized variable to eliminate warning --- c/src/exec/score/cpu/i960/cpu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) ); \ -- cgit v1.2.3