diff options
| author | Mike J. Chen <mjchen@google.com> | 2014-01-31 18:16:59 -0800 |
|---|---|---|
| committer | Mike J. Chen <mjchen@google.com> | 2014-02-11 09:48:38 -0800 |
| commit | 5cd8bff2dd0337cb52bf48f312e3d2d55a8882fb (patch) | |
| tree | e57ed7fa0f556b2f10f081f39354a903511ae5f5 /udrv | |
| parent | 60126e439e01a30d6121a55aaf6d3a5d6d400507 (diff) | |
| download | android_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 'udrv')
| -rw-r--r-- | udrv/ulinux/uipc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/udrv/ulinux/uipc.c b/udrv/ulinux/uipc.c index 846fa176a..795f615b3 100644 --- a/udrv/ulinux/uipc.c +++ b/udrv/ulinux/uipc.c @@ -50,6 +50,7 @@ #include <cutils/sockets.h> #include "audio_a2dp_hw.h" +#include "bt_utils.h" /***************************************************************************** ** Constants & Macros @@ -518,6 +519,7 @@ static void uipc_read_task(void *arg) { int ch_id; int result; + UNUSED(arg); prctl(PR_SET_NAME, (unsigned long)"uipc-main", 0, 0, 0); @@ -608,6 +610,8 @@ void uipc_stop_main_server_thread(void) UDRV_API void UIPC_Init(void *p_data) { + UNUSED(p_data); + BTIF_TRACE_DEBUG0("UIPC_Init"); memset(&uipc_main, 0, sizeof(tUIPC_MAIN)); @@ -702,6 +706,8 @@ UDRV_API void UIPC_Close(tUIPC_CH_ID ch_id) *******************************************************************************/ UDRV_API BOOLEAN UIPC_SendBuf(tUIPC_CH_ID ch_id, BT_HDR *p_msg) { + UNUSED(p_msg); + BTIF_TRACE_DEBUG1("UIPC_SendBuf : ch_id %d NOT IMPLEMENTED", ch_id); UIPC_LOCK(); @@ -726,6 +732,7 @@ UDRV_API BOOLEAN UIPC_Send(tUIPC_CH_ID ch_id, UINT16 msg_evt, UINT8 *p_buf, UINT16 msglen) { int n; + UNUSED(msg_evt); BTIF_TRACE_DEBUG2("UIPC_Send : ch_id:%d %d bytes", ch_id, msglen); @@ -752,6 +759,8 @@ UDRV_API BOOLEAN UIPC_Send(tUIPC_CH_ID ch_id, UINT16 msg_evt, UINT8 *p_buf, *******************************************************************************/ UDRV_API void UIPC_ReadBuf(tUIPC_CH_ID ch_id, BT_HDR *p_msg) { + UNUSED(p_msg); + BTIF_TRACE_DEBUG1("UIPC_ReadBuf : ch_id:%d NOT IMPLEMENTED", ch_id); UIPC_LOCK(); @@ -774,6 +783,7 @@ UDRV_API UINT32 UIPC_Read(tUIPC_CH_ID ch_id, UINT16 *p_msg_evt, UINT8 *p_buf, UI int n_read = 0; int fd = uipc_main.ch[ch_id].fd; struct pollfd pfd; + UNUSED(p_msg_evt); if (ch_id >= UIPC_CH_NUM) { |
