[parted-devel] Deprecate ped[register|unregister]_disk_type

Otavio Salvador otavio at debian.org
Mon Dec 11 14:16:29 CET 2006


leslie.polzer at gmx.net writes:

> On Sun, Dec 10, 2006 at 02:58:15PM -0200, Otavio Salvador wrote:
>
>> I personally like how the kernel folks does it. They use a definition
>> to add an attribute that raise a warning on compile time. For example:
>>
>> #define __deprecated __attribute__((deprecated))
>>
>> So you just need:
>>
>> __deprecated void deprecated_function_proto();
> How does the compiler act when it comes across this?
> Is it compatible (if yes, to what extent) with non-GCC compilers?
> Weeding GCC extensions out of Parted is not an easy thing to do, but we
> need not make it worse...

If desired, I can grab the compiler detection code from kernel and use
it there. It's a 5 lines code.

But by now, I don't think it's need but if someone wants it I can do.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list