KDE_DEPRECATED

Peter Kümmel syntheticpp at gmx.net
Sat Mar 11 13:33:48 CET 2006


Thiago Macieira wrote:
> Brad King wrote:
>> I've found that a KDE_DEPRECATED-style macro is insufficient across
>> compilers.  Some compilers want the decoration before the method and
>> some want it after the method.  In VTK I created a "VTK_LEGACY" macro
>> that surrounds the method declaration.
> 
> This is not necessary in KDE. The position for the macro IS between the 
> inline/static/virtual modifiers and the return value.
> 

So, we have a decision. That's good to go further.

> Qt is doing the same way for QT3_SUPPORT, even though that doesn't trigger 
> warnings unless QT3_SUPPORT_WARNINGS is turned on.
> 
> Maybe we should have the same?
> #ifdef KDE_DEPRECATED_WARNINGS
> # define KDE_DEPRECATED Q_DECL_DEPRECATED
> #else
> # define KDE_DEPRECATED
> #endif
> 
> This would allow us to *build* the compatibility methods and classes 
> without those annoying warnings.



More information about the Kde-buildsystem mailing list