diff options
| -rw-r--r-- | src/bt-vendor_vfs/ant_native_chardev.c | 15 | ||||
| -rw-r--r-- | src/bt-vendor_vfs/ant_rx_chardev.c | 2 | ||||
| -rw-r--r-- | src/vfs/ant_rx_chardev.c | 2 |
3 files changed, 10 insertions, 9 deletions
diff --git a/src/bt-vendor_vfs/ant_native_chardev.c b/src/bt-vendor_vfs/ant_native_chardev.c index ec801a8..ac0a765 100644 --- a/src/bt-vendor_vfs/ant_native_chardev.c +++ b/src/bt-vendor_vfs/ant_native_chardev.c @@ -47,21 +47,22 @@ #include "bt_vendor_qcom.h" /* used by qualcomms code to call into libbt-vendor.so */ #include <cutils/properties.h> /* used by qualcomms additions for logging. */ // The following functions are dummy implementations of the callbacks required by libbt-vendor. -static void vendor_fwcfg_cb(bt_vendor_op_result_t result) { +static void vendor_fwcfg_cb(bt_vendor_op_result_t result __unused) { } -static void vendor_scocfg_cb(bt_vendor_op_result_t result) { +static void vendor_scocfg_cb(bt_vendor_op_result_t result __unused) { } -static void vendor_lpm_vnd_cb(bt_vendor_op_result_t result) { +static void vendor_lpm_vnd_cb(bt_vendor_op_result_t result __unused) { } -static void* vendor_alloc(int size) { +static void* vendor_alloc(int size __unused) { return NULL; } -static void vendor_dealloc(void *p_buf) { +static void vendor_dealloc(void *p_buf __unused) { } -static uint8_t vendor_xmit_cb(uint16_t opcode, void *p_buf, tINT_CMD_CBACK p_cback) { +static uint8_t vendor_xmit_cb(uint16_t opcode __unused, void *p_buf __unused, + tINT_CMD_CBACK p_cback __unused) { return 0; } -static void vendor_epilog_cb(bt_vendor_op_result_t result) { +static void vendor_epilog_cb(bt_vendor_op_result_t result __unused) { } // This struct is used to regsiter the dummy callbacks with libbt-vendor diff --git a/src/bt-vendor_vfs/ant_rx_chardev.c b/src/bt-vendor_vfs/ant_rx_chardev.c index 6336524..bbc7a79 100644 --- a/src/bt-vendor_vfs/ant_rx_chardev.c +++ b/src/bt-vendor_vfs/ant_rx_chardev.c @@ -94,7 +94,7 @@ ANT_BOOL areAllFlagsSet(short value, short flags) * This thread is run occasionally as a detached thread in order to send a keepalive message to the * chip. */ -void *fnKeepAliveThread(void *unused) +void *fnKeepAliveThread() { ANT_DEBUG_V("Sending dummy keepalive message."); ant_tx_message(sizeof(KEEPALIVE_MESG)/sizeof(ANT_U8), KEEPALIVE_MESG); diff --git a/src/vfs/ant_rx_chardev.c b/src/vfs/ant_rx_chardev.c index 3876119..b5a57a9 100644 --- a/src/vfs/ant_rx_chardev.c +++ b/src/vfs/ant_rx_chardev.c @@ -95,7 +95,7 @@ ANT_BOOL areAllFlagsSet(short value, short flags) * This thread is run occasionally as a detached thread in order to send a keepalive message to the * chip. */ -void *fnKeepAliveThread(void *unused) +void *fnKeepAliveThread() { ANT_DEBUG_V("Sending dummy keepalive message."); ant_tx_message(sizeof(KEEPALIVE_MESG)/sizeof(ANT_U8), KEEPALIVE_MESG); |
