summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordan Markuš <gordan.markus@pelagicore.com>2017-07-03 15:05:05 +0200
committerGordan Markuš <gordan.markus@pelagicore.com>2017-07-03 15:06:35 +0200
commitfe829626b34c9ee1ca0d6e256c39a4333d6cebdd (patch)
treea82da494d59936fedbde5a4ccedee9f13446fd66
parenteeac12ced6f5441846fc6afcb0eff0461feb8bef (diff)
downloadpersistence-common-object-fe829626b34c9ee1ca0d6e256c39a4333d6cebdd.tar.gz
pers_ipc_dbus: remove deprecated glib init
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š <gordan.markus@pelagicore.com>
-rw-r--r--src/pers_ipc_dbus.c6
1 files changed, 0 insertions, 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);