Re: Turning off deprecated function warnings
Re: Turning off deprecated function warnings
- Subject: Re: Turning off deprecated function warnings
- From: Chris Espinosa <email@hidden>
- Date: Sat, 4 Feb 2006 17:10:17 -0800
On Feb 4, 2006, at 4:34 PM, David Dunham wrote: I know this was addressed recently, but I can't find the message.
I have moved deprecated functions (I need to use an old-fashioned font family ID) to a separate file. I'd like to NOT get warnings for that file (but still get them for all other files).
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS is a project or target setting. I can set additional compiler flags, but I want to turn this one off.
The general way to set a build setting for a single file:
1) Look in the Build Settings list and see what the actual flag is for a given setting. It's usually given in the Description box at the bottom of the inspector. In this case I think you're looking for -Wno-deprecated-declarations .
2) Reveal your target's Compile Sources build phase in the Groups and FIles list, and find the source file you want to apply the setting to.
3) Select that file in the build phase and choose Get Info. In the file inspector's Build tab, add the appropriate flag.
That flag will be applied for that particular file in that particular target.
Chris |
_______________________________________________
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