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:
@@ -81,7 +81,7 @@ public:
|
||||
// unnaturally: it disabled the bell when it was true, not false as could
|
||||
// be expected; use SuppressBellOnError() instead
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
static wxDEPRECATED_INLINE(
|
||||
wxDEPRECATED_INLINE(static
|
||||
void SetBellOnError(bool doIt = true),
|
||||
ms_isSilent = doIt;
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user