Fix the warning errors 21/98021/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 16 Nov 2016 01:31:47 +0000 (10:31 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 16 Nov 2016 01:33:14 +0000 (10:33 +0900)
Change-Id: I20e16e4913789fc3b21c74e316c9e08ab031cf10
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service/bt-service-adapter.c
bt-service/bt-service-common.c
bt-service/bt-service-device.c

index 656595f..4c0ac3d 100644 (file)
@@ -511,7 +511,7 @@ static int __bt_set_enabled(void)
                return BLUETOOTH_ERROR_INTERNAL;
        }
 
-#ifdef TIZEN_PROFILE_MOBILE || defined(TIZEN_PROFILE_IVI)
+#if defined(TIZEN_PROFILE_MOBILE) || defined(TIZEN_PROFILE_IVI)
        /* BT setting UI will control Mobile's visible mode. So in the FRWK...set the visible mode as off: */
        if (_bt_set_discoverable_mode(
                BLUETOOTH_DISCOVERABLE_MODE_CONNECTABLE, 0) != BLUETOOTH_ERROR_NONE)
index 88b8ee4..d17c6af 100644 (file)
@@ -89,9 +89,6 @@ GDBusConnection *_bt_gdbus_init_session_gconn(void)
 {
        GError *error = NULL;
 
-       if (!g_thread_supported())
-               g_thread_init(NULL);
-
        dbus_threads_init_default();
 
        if (session_conn != NULL)
index 206af08..26120bc 100644 (file)
@@ -37,6 +37,7 @@
 #include "bt-service-network.h"
 #include "bt-service-adapter.h"
 #include "bt-service-gap-agent.h"
+#include "bt-service-pbap.h"
 
 #define BT_SYSPOPUP_IPC_RESPONSE_OBJECT "/org/projectx/bt_syspopup_res"
 #define BT_SYSPOPUP_INTERFACE "User.Bluetooth.syspopup"