• 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: Tue, 22 Mar 2011 14:19:06 -0400
  • Organization: Rogue Research Inc.

On Sun, 20 Mar 2011 10:56:16 -0700, David Dunham said:

>Because of bugs in clang's C++ support, I'm still using Xcode 3.2.6 to
>make ARM builds. When I compile code using blocks, I get a ton of
>warnings, e.g. in
>
>	b.transform = interimTransform;
>	[UIView animateWithDuration: kInterimDuration delay: 0.0 options: 0
>animations:^ {
>		b.transform = CGAffineTransformIdentity;
>
>I get
>
>/Users/david/iKoDP/KoDP/Classes/AdviceView.mm:358:0 /Users/david/iKoDP/
>KoDP/Classes/AdviceView.mm:358: warning: declaration of 'b' shadows a
>previous local
>/Users/david/iKoDP/KoDP/Classes/AdviceView.mm:275:0 /Users/david/iKoDP/
>KoDP/Classes/AdviceView.mm:275: warning: shadowed declaration is here
>
>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"

--
____________________________________________________________
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: 
 >Block variable warnings (From: David Dunham <email@hidden>)

  • Prev by Date: Re: from symbol name to full documentation in Xcode 4
  • Next by Date: Re: Poll: What shortcut did you use in XCode?
  • Previous by thread: Block variable warnings
  • Next by thread: Re: Block variable warnings
  • Index(es):
    • Date
    • Thread