Re: Silencing deprecation warnings
Re: Silencing deprecation warnings
- Subject: Re: Silencing deprecation warnings
- From: "Sean McBride" <email@hidden>
- Date: Wed, 7 Apr 2010 20:14:35 -0400
- Organization: Rogue Research Inc.
On Wed, 7 Apr 2010 16:41:29 -0700, Martin Wierschin said:
>> Just what I needed. For the archives, that #pragma must be used
>> outside function scope.
>
>I'm trying to get this working for code which imports legacy documents
>and uses deprecated Carbon calls, but haven't had any luck. I've
>placed the pragma at the very top of the file, eg:
>
> #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
Disabling warnings like this is a fairly new addition to gcc and does
not work for all warnings. For those it doesn't work with, it just does
nothing. gcc 4.2 supports more than 4.0 did, you might try it.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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