disabling warnings on a smaller scal
disabling warnings on a smaller scal
- Subject: disabling warnings on a smaller scal
- From: "John C. Daub" <email@hidden>
- Date: Thu, 12 Jan 2006 16:22:54 -0600
- Thread-topic: disabling warnings on a smaller scal
Hello.
I'm going through our code cleaning out deprecated functions. I know about
the GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS and the -Wno-deprecated-declarations
stuff... but those appear to only function on a whole project/target or
perhaps a single-file granularity.
Is there any way to disable a warning around say a particular function or
block of code?
For instance, I'll have a C++ class that's mostly modern save a few
functions that we just have to leave using deprecated functionality. As a
result, building isn't 100% clean because we'll get the deprecated warnings.
In general we want to address such warnings so we want the setting on, but
in these few exceptional cases we know what's going on and just don't need
the compiler emitting warnings in these known exceptional cases. So, is
there a way to disable a warning on a granularity of say a function or a
block of code?
Thanx.
--
John C. Daub }:-)>=
<mailto:email@hidden> <http://www.hsoi.com/>
"The only brick we can build with is love!" -- Buddo
_______________________________________________
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