Re: gcc poison, how to catch use of strcpy()?
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