• 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: gcc poison, how to catch use of strcpy()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc poison, how to catch use of strcpy()?


  • Subject: Re: gcc poison, how to catch use of strcpy()?
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 19 May 2009 13:04:17 -0400
  • Organization: Rogue Research Inc.

On 5/19/09 10:01 AM, Shawn Erickson said:

>> Ever wished Apple would deprecate things so that you'd be warned
>against using them?
>
>/*
> * only certain compilers support __attribute__((deprecated))
> */
>#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) &&
>(__GNUC_MINOR__ >= 1)))
>    #define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
>#else
>    #define DEPRECATED_ATTRIBUTE
>#endif
>
>/*
> * AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED
> *
> * Used on functions introduced in Mac OS X 10.0,
> * and deprecated in Mac OS X 10.0
> */
>#define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED
>DEPRECATED_ATTRIBUTE

Is your suggestion to hack the system headers to add the deprecated
decoration?  I guess that would work.

--
____________________________________________________________
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

  • Follow-Ups:
    • Re: gcc poison, how to catch use of strcpy()?
      • From: Shawn Erickson <email@hidden>
    • Re: gcc poison, how to catch use of strcpy()?
      • From: Gwynne Raskind <email@hidden>
References: 
 >gcc poison, how to catch use of strcpy()? (From: "Sean McBride" <email@hidden>)
 >Re: gcc poison, how to catch use of strcpy()? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: gcc poison, how to catch use of strcpy()?
  • Next by Date: Determining deployment target at build time
  • Previous by thread: Re: gcc poison, how to catch use of strcpy()?
  • Next by thread: Re: gcc poison, how to catch use of strcpy()?
  • Index(es):
    • Date
    • Thread