[PATCH 1/2] core: fix GLib warning

Felipe Contreras felipe.contreras at gmail.com
Wed Apr 9 16:28:25 EDT 2014


  core.c: In function ‘purple_core_init’:
  core.c:94:2: warning: ‘g_type_init’ is deprecated (declared at
  /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]
    g_type_init();
    ^

Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core.c b/core.c
index c07fc35..32dc1fd 100644
--- a/core.c
+++ b/core.c
@@ -90,8 +90,9 @@ purple_core_init(const char *ui)
 #ifdef _WIN32
 	wpurple_init();
 #endif
-
+#if !GLIB_CHECK_VERSION(2, 36, 0)
 	g_type_init();
+#endif
 
 	_core = core = g_new0(PurpleCore, 1);
 	core->ui = g_strdup(ui);
-- 
1.9.1+fc1



More information about the Devel mailing list