From cc8a4379634ead1ec90824249f7079e3bfedadaf Mon Sep 17 00:00:00 2001 From: "kibak.yoon" Date: Wed, 25 May 2016 14:44:02 +0900 Subject: [PATCH] sensord: fix build warning because of using g_type_init() - g_type_init() should be called under glib version 2.36 Change-Id: I5291cd4ea92168ddba0a961c0f24631cc2265dfb Signed-off-by: kibak.yoon --- src/server/dbus_util.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/dbus_util.cpp b/src/server/dbus_util.cpp index df1ade0..c29b61d 100755 --- a/src/server/dbus_util.cpp +++ b/src/server/dbus_util.cpp @@ -143,7 +143,9 @@ void reset_total_count(void) void init_dbus(void) { +#ifndef GLIB_VERSION_2_36 g_type_init(); +#endif introspection_data = g_dbus_node_info_new_for_xml(introspection_xml, NULL); if (introspection_data == NULL) { -- 2.7.4