summaryrefslogtreecommitdiffstats
path: root/stack/sdp/sdp_main.c
diff options
context:
space:
mode:
authorMike J. Chen <mjchen@google.com>2014-01-31 18:16:59 -0800
committerMike J. Chen <mjchen@google.com>2014-02-11 09:48:38 -0800
commit5cd8bff2dd0337cb52bf48f312e3d2d55a8882fb (patch)
treee57ed7fa0f556b2f10f081f39354a903511ae5f5 /stack/sdp/sdp_main.c
parent60126e439e01a30d6121a55aaf6d3a5d6d400507 (diff)
downloadandroid_system_bt-5cd8bff2dd0337cb52bf48f312e3d2d55a8882fb.tar.gz
android_system_bt-5cd8bff2dd0337cb52bf48f312e3d2d55a8882fb.tar.bz2
android_system_bt-5cd8bff2dd0337cb52bf48f312e3d2d55a8882fb.zip
Major warnings cleanup
Mostly fixing unused parameter warnings. A few other warnings also fixed like possible use of unitialized variables (no real issue found, just compiler couldn't follow the path), signed vs unsigned warning. Also fixed some typos, indent issues, removal of dead code, etc. Change-Id: I95eb887aefc4d559d7921f71a0af5f3bfb01ac01 Signed-off-by: Mike J. Chen <mjchen@google.com>
Diffstat (limited to 'stack/sdp/sdp_main.c')
-rw-r--r--stack/sdp/sdp_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stack/sdp/sdp_main.c b/stack/sdp/sdp_main.c
index 14cd39b6f..d43c634b0 100644
--- a/stack/sdp/sdp_main.c
+++ b/stack/sdp/sdp_main.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include "bt_target.h"
+#include "bt_utils.h"
#include "gki.h"
#include "l2cdefs.h"
#include "hcidefs.h"
@@ -170,6 +171,7 @@ UINT16 sdp_set_max_attr_list_size (UINT16 max_size)
*******************************************************************************/
static void sdp_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id)
{
+ UNUSED(psm);
#if SDP_SERVER_ENABLED == TRUE
tCONN_CB *p_ccb;
@@ -671,6 +673,7 @@ void sdp_disconnect (tCONN_CB*p_ccb, UINT16 reason)
static void sdp_disconnect_cfm (UINT16 l2cap_cid, UINT16 result)
{
tCONN_CB *p_ccb;
+ UNUSED(result);
/* Find CCB based on CID */
if ((p_ccb = sdpu_find_ccb_by_cid (l2cap_cid)) == NULL)