Suppressing variable hiding warning in Xcode
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