the parameter has no initial value before reference

careri/sed careri at public.sta.net.cn
Tue Jul 17 10:42:03 UTC 2001


Hello,

You are right.

Thanks
Rong

-----Original Message-----
From:	Gerwin Pfab [SMTP:pb at schenk.isar.de]
Sent:	Tuesday, July 17, 2001 3:20 PM
To:	careri/sed
Cc:	rtems
Subject: 	Re: the parameter has no initial value before reference


carerie,

_ISR_Disable( level) is a makro. level is an output parameter and gets the
value inside _ISR_Disable().

Gerwin Pfab

Gerwin Pfab <pb at schenk.isar.de>   Dr. Schenk Industriemesstechnik GmbH
Dipl. Ing.                        Einsteinstrasse 37 
Software Engineering              D-82152 Martinsried
                                  Tel: +49-89-85695-0
                                  Fax: +49-89-85695-200

On Tue, 17 Jul 2001, careri/sed wrote:

> Consider the following code in chain.c:
> 
> void _Chain_Append(
>   Chain_Control *the_chain,
>   Chain_Node    *node
> )
> {
>   ISR_Level level;
> 
>   _ISR_Disable( level );
>     _Chain_Append_unprotected( the_chain, node );
>   _ISR_Enable( level );
> }
> 
> The parameter level has no initial value when _ISR_Disable is called.
> 
> Rong
> 





More information about the users mailing list