Fix uses of wxDEPRECATED in WXWIN_COMPATIBILITY_2_8-only code
wxDEPRECATED must be used for the entire declaration to really work, but this wasn't the case for a few functions (and one typedef) guarded by WXWIN_COMPATIBILITY_2_8, resulting in gcc -Wattributes warning about the attribute being ignored and the declaration not being really marked as deprecated. Fix this by applying the deprecation macro to the entire declaration, which works well for gcc and should hopefully work for MSVC too.
This commit is contained in:
@@ -578,7 +578,7 @@ public:
|
||||
|
||||
// don't use integer masks any more, use string trace masks instead
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
static wxDEPRECATED_INLINE( void SetTraceMask(wxTraceMask ulMask),
|
||||
wxDEPRECATED_INLINE( static void SetTraceMask(wxTraceMask ulMask),
|
||||
ms_ulTraceMask = ulMask; )
|
||||
|
||||
// this one can't be marked deprecated as it's used in our own wxLogger
|
||||
|
||||
Reference in New Issue
Block a user