From 3dde6ec2feb2bb34a5ee95bcac44c91c2525a54a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 24 Feb 2016 19:38:10 +0100 Subject: [PATCH] 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. --- src/x11/app.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/x11/app.cpp b/src/x11/app.cpp index 5c62d41d8c..b7c8a12636 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -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