• 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
Re: Incorrect block warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Incorrect block warnings (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Incorrect block warnings
  • Next by Date: Re: Static library/object file path privacy
  • Previous by thread: Re: Incorrect block warnings
  • Next by thread: Re: Incorrect block warnings
  • Index(es):
    • Date
    • Thread