sensord: fix build warning because of using g_type_init() 38/71338/2
authorkibak.yoon <kibak.yoon@samsung.com>
Wed, 25 May 2016 05:44:02 +0000 (14:44 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Thu, 26 May 2016 01:44:21 +0000 (10:44 +0900)
- g_type_init() should be called under glib version 2.36

Change-Id: I5291cd4ea92168ddba0a961c0f24631cc2265dfb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/server/dbus_util.cpp

index df1ade0..c29b61d 100755 (executable)
@@ -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) {