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:
Vadim Zeitlin
2021-11-28 21:42:06 +01:00
parent 9febbe2b30
commit d14e035580
6 changed files with 7 additions and 7 deletions

View File

@@ -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;
)