From fe829626b34c9ee1ca0d6e256c39a4333d6cebdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gordan=20Marku=C5=A1?= Date: Mon, 3 Jul 2017 15:05:05 +0200 Subject: pers_ipc_dbus: remove deprecated glib init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As the comment states the g_type_init function calls are deprecated. It still produces build warnings and as such it is better to remove it. ../src/pers_ipc_dbus.c:1411:2: warning: ‘g_type_init’ is deprecated [-Wdeprecated-declarations] ../src/pers_ipc_dbus.c:1470:2: warning: ‘g_type_init’ is deprecated [-Wdeprecated-declarations] Signed-off-by: Gordan Markuš --- src/pers_ipc_dbus.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/pers_ipc_dbus.c b/src/pers_ipc_dbus.c index cac136d..f399bd0 100644 --- a/src/pers_ipc_dbus.c +++ b/src/pers_ipc_dbus.c @@ -1407,9 +1407,6 @@ static void* persIpcPASLoopThread(void *lpParam) { uint32_t u32ConnectionId = 0; - /* Initialize glib */ - g_type_init(); /* deprecated. Since GLib 2.36, the type system is initialized automatically and this function does nothing.*/ - /* Create the main loop */ g_pPASMainLoop = g_main_loop_new(NIL, FALSE); if(NIL == g_pPASMainLoop) @@ -1466,9 +1463,6 @@ static void* persIpcPCLLoopThread(void *lpParam) { GError *pGError = NIL; - /* Initialize glib */ - g_type_init(); /* deprecated. Since GLib 2.36, the type system is initialized automatically and this function does nothing.*/ - /* Create the main loop */ g_pPCLMainLoop = g_main_loop_new(NIL, FALSE); -- cgit v1.2.1