• 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: Block variable warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Block variable warnings


  • Subject: Re: Block variable warnings
  • From: Sean McBride <email@hidden>
  • Date: Wed, 23 Mar 2011 17:35:54 -0400
  • Organization: Rogue Research Inc.

On Wed, 23 Mar 2011 09:08:39 +0000, Jonathan Taylor said:

>>> I don't get these if I use Xcode 4.
>>>
>>> How can I suppress these warnings when using Xcode 3.2.x?
>>>
>>
>> #pragma GCC diagnostic ignored "-Wshadow"
>>
>> ...code...
>>
>> #pragma GCC diagnostic warning "-Wshadow"
>
>I have always been rather wary of this, and have never confirmed to
>my satisfaction whether this is simply a spurious warning or an
>indication that the compiler has "misunderstood" my source code and
>hence potentially generated incorrect code from it (I've reported
>this and various similar bugs...). If it crops up I tend to take that
>as a cue to simplify what I am doing, and potentially remove that use
>of a block entirely, just to be safe...

In this case though, I'm pretty sure it's a false positive.  Apple's gcc
4.2's support for blocks+C++ is known to be weak.

--
____________________________________________________________
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: 
 >Re: Block variable warnings (From: Jonathan Taylor <email@hidden>)

  • Prev by Date: Calling Cocoa Dialogs from Carbon?
  • Next by Date: Re: Calling Cocoa Dialogs from Carbon?
  • Previous by thread: Re: Block variable warnings
  • Next by thread: Re: Block variable warnings
  • Index(es):
    • Date
    • Thread