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:
@@ -184,8 +184,11 @@ bool wxApp::Initialize(int& argC, wxChar **argV)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
#if wxUSE_UNICODE
|
#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();
|
g_type_init();
|
||||||
|
wxGCC_WARNING_RESTORE()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_INTL
|
#if wxUSE_INTL
|
||||||
|
Reference in New Issue
Block a user