• 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
Used before Initialized Variables Warning/Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Used before Initialized Variables Warning/Error


  • Subject: Used before Initialized Variables Warning/Error
  • From: Dave <email@hidden>
  • Date: Tue, 13 Feb 2007 12:29:58 +0000

Hi,

I was wondering if there is a Warning for variables that are used before they are Initialized?

e.g.

void FunctionX(int theValue)
{
int  myValue;
int myTotal;

myTotal = myValue * theValue;

return(myTotal);
}

Would give a Warning since myValue has not been initialized to anything.

I assumed there would be since there are so many other warning present, but can't seem to find it.

Thanks a lot
All the Best
Dave

_______________________________________________
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


  • Follow-Ups:
    • Re: Used before Initialized Variables Warning/Error
      • From: Laurence Harris <email@hidden>
    • Re: Used before Initialized Variables Warning/Error
      • From: Tommy Nordgren <email@hidden>
References: 
 >Debug from Crash Log (From: Trygve Inda <email@hidden>)
 >Re: Debug from Crash Log (From: David Dunham <email@hidden>)

  • Prev by Date: Re: Debugging PlugIn
  • Next by Date: Re: Used before Initialized Variables Warning/Error
  • Previous by thread: Re: Debug from Crash Log
  • Next by thread: Re: Used before Initialized Variables Warning/Error
  • Index(es):
    • Date
    • Thread