• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Silencing deprecation warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Silencing deprecation warnings (From: Fritz Anderson <email@hidden>)
 >Re: Silencing deprecation warnings (From: Fritz Anderson <email@hidden>)
 >Re: Silencing deprecation warnings (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: Silencing deprecation warnings
  • Next by Date: Tech Help
  • Previous by thread: Re: Silencing deprecation warnings
  • Next by thread: flexible array member not initializing
  • Index(es):
    • Date
    • Thread