Re: crosses initialization
Re: crosses initialization
- Subject: Re: crosses initialization
- From: Lawrence Gold <email@hidden>
- Date: Sun, 21 May 2006 11:57:17 -0600
Jonathan Taylor wrote:
> I see from the archives this sort of question has been asked before,
> but none of the answers seem to address my current problem.
>
> I have a whole load of code which involves code similar to the
> following test case:
>
> long bar(void) { return 2; }
>
> void foo(void)
> {
> goto ExitLabel;
> long temp = 1;
> long temp2 = bar();
> long temp3 = 3;
> long temp4;
> temp4 = 4;
> ExitLabel:
> return;
> }
I think a fairly simple way to suppress the error is to enclose the
lines between the goto and the label in curly braces like so:
void foo(void)
{
goto ExitLabel:
{
long temp = 1;
long temp2 = bar();
long temp3 = 3;
long temp4;
temp4 = 4;
}
ExitLabel:
return;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden