• 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: Turn off -Wshadow for boost::gil?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turn off -Wshadow for boost::gil?


  • Subject: Re: Turn off -Wshadow for boost::gil?
  • From: Greg Guerin <email@hidden>
  • Date: Fri, 8 May 2009 16:38:28 -0700

Steve Mills wrote:

What I'm hoping to find is a way to turn off that warning while the compiler is looking at the gil files, then reset it back to its former state. That way the warning is still useful should somebody in our company write bad code that hides a local/member variable. But Xcode (well, gcc) doesn't seem to pay attention to my attempts. This is what I added at the top of our .h that then includes the gil headers.

#pragma GCC diagnostic ignored "-Wshadow"

The warning is turned on in our project settings (in an .xcconfig file actually).

Any ideas?

Try compiling gil as a library, with -Wno-shadow in its target build settings. Then all the other uses of gil reference it as a library, not as source files, and they can all have -Wshadow.


  -- GG


_______________________________________________ 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
  • Prev by Date: Re: Turn off -Wshadow for boost::gil?
  • Next by Date: Re: Interface Builder: Yellow Xcode project status in IB document window
  • Previous by thread: Re: Turn off -Wshadow for boost::gil?
  • Next by thread: Xcode and spotlight question
  • Index(es):
    • Date
    • Thread