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

Turn off -Wshadow for boost::gil?


  • Subject: Turn off -Wshadow for boost::gil?
  • From: Steve Mills <email@hidden>
  • Date: Fri, 08 May 2009 16:18:38 -0500

We use boost and gil. We like having the -Wshadow warning turned on (Hidden Local Variables) because it shows possible bugs. But the gil code is jam packed with violations of this warning, so we get way over 10,000 warnings before Xcode stops displaying them. We include some gil files in one of our headers. That header is included in our pch.

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?

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/


_______________________________________________ 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
  • Follow-Ups:
    • Re: Turn off -Wshadow for boost::gil?
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Fwd: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable
  • Next by Date: Re: iPhone Telephone APIs
  • Previous by thread: Re: subclass
  • Next by thread: Re: Turn off -Wshadow for boost::gil?
  • Index(es):
    • Date
    • Thread