Fix harmless deprecation warning for g_type_init() in wxX11

Even if it's deprecated, it's harmless to call it, so just suppress the
warning.
This commit is contained in:
Vadim Zeitlin
2016-02-24 19:38:10 +01:00
parent 1c105a2e06
commit 3dde6ec2fe

View File

@@ -184,8 +184,11 @@ bool wxApp::Initialize(int& argC, wxChar **argV)
return false;
#if wxUSE_UNICODE
// Glib's type system required by Pango
// Glib's type system required by Pango (deprecated since glib 2.36 but
// used to be required, so still call it, it's harmless).
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
g_type_init();
wxGCC_WARNING_RESTORE()
#endif
#if wxUSE_INTL