summaryrefslogtreecommitdiffstats
path: root/stack/gap/gap_ble.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/gap/gap_ble.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/gap/gap_ble.c')
-rw-r--r--stack/gap/gap_ble.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stack/gap/gap_ble.c b/stack/gap/gap_ble.c
index 48f4723e1..d44577dc0 100644
--- a/stack/gap/gap_ble.c
+++ b/stack/gap/gap_ble.c
@@ -19,6 +19,7 @@
#if (defined BLE_INCLUDED && BLE_INCLUDED == TRUE)
+#include "bt_utils.h"
#include <string.h>
#include "gap_int.h"
#include "gap_api.h"
@@ -345,6 +346,7 @@ tGATT_STATUS gap_read_attr_value (UINT16 handle, tGATT_VALUE *p_value, BOOLEAN i
tGATT_STATUS gap_proc_read (tGATTS_REQ_TYPE type, tGATT_READ_REQ *p_data, tGATTS_RSP *p_rsp)
{
tGATT_STATUS status = GATT_NO_RESOURCES;
+ UNUSED(type);
if (p_data->is_long)
p_rsp->attr_value.offset = p_data->offset;
@@ -381,6 +383,7 @@ UINT8 gap_proc_write_req( tGATTS_REQ_TYPE type, tGATT_WRITE_REQ *p_data)
{
tGAP_ATTR *p_db_attr = gap_cb.gatt_attr;
UINT8 i;
+ UNUSED(type);
for (i = 0; i < GAP_MAX_CHAR_NUM; i ++, p_db_attr ++)
{
@@ -613,6 +616,7 @@ static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_
{
tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (bda);
UINT16 cl_op_uuid;
+ UNUSED(gatt_if);
GAP_TRACE_EVENT5 ("gap_ble_c_connect_cback: from %08x%04x connected:%d conn_id=%d reason = 0x%04x",
(bda[0]<<24)+(bda[1]<<16)+(bda[2]<<8)+bda[3],