From f97fe47fc21e1dabacbdcae4dd0e2fdb38ff9f21 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Wed, 16 Nov 2016 10:31:47 +0900 Subject: [PATCH] Fix the warning errors Change-Id: I20e16e4913789fc3b21c74e316c9e08ab031cf10 Signed-off-by: DoHyun Pyun --- bt-service/bt-service-adapter.c | 2 +- bt-service/bt-service-common.c | 3 --- bt-service/bt-service-device.c | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bt-service/bt-service-adapter.c b/bt-service/bt-service-adapter.c index 656595f..4c0ac3d 100644 --- a/bt-service/bt-service-adapter.c +++ b/bt-service/bt-service-adapter.c @@ -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) diff --git a/bt-service/bt-service-common.c b/bt-service/bt-service-common.c index 88b8ee4..d17c6af 100644 --- a/bt-service/bt-service-common.c +++ b/bt-service/bt-service-common.c @@ -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) diff --git a/bt-service/bt-service-device.c b/bt-service/bt-service-device.c index 206af08..26120bc 100644 --- a/bt-service/bt-service-device.c +++ b/bt-service/bt-service-device.c @@ -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" -- 2.7.4