Re: Incorrect block warnings
Re: Incorrect block warnings
- Subject: Re: Incorrect block warnings
- From: Sean McBride <email@hidden>
- Date: Mon, 16 May 2011 09:43:49 -0400
- Organization: Rogue Research Inc.
On Sat, 14 May 2011 01:46:49 -0400, Rick Mann said:
>Xcode 3.2.6, GCC 4.2, Cocoa App, OS X 10.6.7
>
>I have a simple bit of code in a .mm file:
>
>- (IBAction)
>exportList: (id) inSender // Shadowed decl is here
>{
> NSSavePanel* sp = [NSSavePanel savePanel]; // Shadowed decl is here
This shadowing warning happens only in C++ and only with gcc. It's a
false positive and does not occur in C nor with clang. It's very
annoying, but I doubt Apple will fix it.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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