[krbdev.mit.edu #2836] feature request: compile/link time warnings for deprecated functions

Ken Raeburn via RT rt-comment at krbdev.mit.edu
Mon Dec 20 15:59:19 EST 2004


On Dec 20, 2004, at 15:11, "Jeffrey Altman [Kermit Project]" via RT 
wrote:
> In Windows there are two options for use with the Microsoft compilers:
>
> 	__declspec(deprecated) void func1(int) {
> 	};
>
> and
>
> 	#pragma deprecated( identifier1 [,identifier2, ...] )
>
> The pragma form supports the deprecation of function, type, or any 
> other
> identifier.  To deprecate a macro symbol, the symbol is placed in 
> double
> quotes.

Useful, thanks.  I haven't done the experimentation yet, but I've seen 
some hints on the net that the __declspec form and gcc's __attribute__ 
form might both be useable in the same position in a declaration, which 
would let us define a single macro appropriately for either compiler...

Ken



More information about the krb5-bugs mailing list