• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: crosses initialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >crosses initialization (From: Jonathan Taylor <email@hidden>)

  • Prev by Date: Re: /Developer/Private/jam failed with exit code 1
  • Next by Date: Re: Running a newly created project
  • Previous by thread: Re: crosses initialization
  • Next by thread: Re: crosses initialization
  • Index(es):
    • Date
    • Thread