Shadowed variable warning when using blocks
Shadowed variable warning when using blocks
- Subject: Shadowed variable warning when using blocks
- From: Stonewall Ballard <email@hidden>
- Date: Sat, 30 Jan 2010 11:12:37 -0500
I like to enable the Hidden Local Variables (GCC_WARN_SHADOW) warning just in case I make a typo. Unfortunately, when using GCD blocks, I always get shadowing warnings for self and every other outer local variable used inside the blocks, e.g.
"Declaration of 'self' shadows a previous local
I don't see any way to tag a variable to say that it's ok for it to shadow, and there's no way to avoid that with blocks.
Unless there is a way to suppress this now, I'd like to lobby for an addition to GCC that avoids the warning. Is that something I should file a bug report on, or is there some other place to do that?
Thanks.
- Stoney
--
Stonewall Ballard
email@hidden http://stoney.sb.org/
_______________________________________________
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