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