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:
@@ -83,7 +83,7 @@ protected:
|
||||
// directly deprecating the classes...)
|
||||
//
|
||||
// note that this g++ bug (16370) is supposed to be fixed in g++ 4.3.0
|
||||
typedef wxEffectsImpl wxDEPRECATED(wxEffects);
|
||||
wxDEPRECATED(typedef wxEffectsImpl wxEffects);
|
||||
|
||||
#endif // WXWIN_COMPATIBILITY_2_8
|
||||
|
||||
|
||||
Reference in New Issue
Block a user