• 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
Suppressing variable hiding warning in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suppressing variable hiding warning in Xcode


  • Subject: Suppressing variable hiding warning in Xcode
  • From: Brad O'Hearne <email@hidden>
  • Date: Sun, 5 Apr 2009 17:10:44 -0700

Hey there,

I had a few questions about selectively suppressing a certain warning in Xcode. I personally find the warning which pertains to local variables hiding instance variables a real nuisance. For example, if you have a message signature with a parameter name which matches an instance variable name, and the compiler produces the following message:

"warning: local declaration of '<variable name>' hides instance variable"

Two questions:

1. I get the gist of trying to prevent developers from accidentally hiding variables -- but is this really a major problem? Other than this, is there a compelling reason to keep this warning in tact, and change variable parameter variable names to make the warning go away?

2. How do you get Xcode to not produce this warning?

Thanks,

Brad
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Suppressing variable hiding warning in Xcode
      • From: Bill Bumgarner <email@hidden>
    • Re: Suppressing variable hiding warning in Xcode
      • From: Chris Suter <email@hidden>
    • RE: Suppressing variable hiding warning in Xcode
      • From: "Jeff Laing" <email@hidden>
  • Prev by Date: Re: Non-pageable app
  • Next by Date: RE: Suppressing variable hiding warning in Xcode
  • Previous by thread: Re: IB 3.1 Panel Has Maximum Size funky - workaround?
  • Next by thread: RE: Suppressing variable hiding warning in Xcode
  • Index(es):
    • Date
    • Thread