Re: Turn off -Wshadow for boost::gil?
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