diff options
author | Frank Barchard <fbarchard@google.com> | 2017-03-13 11:38:11 -0700 |
---|---|---|
committer | Thierry Strudel <tstrudel@google.com> | 2017-03-14 15:41:38 -0700 |
commit | 1414527307ab6aae2c497b3d2122278cb9ca1aa1 (patch) | |
tree | 870a6c444bc0aa9db44651f815e11fd07d1fc0f0 | |
parent | 48e31bec582e3854b3aaad0ebaaf4ac2ad6a33db (diff) | |
download | bt-1414527307ab6aae2c497b3d2122278cb9ca1aa1.tar.gz |
msm8998: fix compiler warning fixes
casting and unused parameter fixes
Bug: 36178675
Test: mm builds with warnings fixed
Change-Id: I11e8e382e0bdee916d3248122e973a4504775ba3
-rw-r--r-- | msm8998/libbt-vendor/src/bt_vendor_qcom.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/msm8998/libbt-vendor/src/bt_vendor_qcom.c b/msm8998/libbt-vendor/src/bt_vendor_qcom.c index de403e6..5573935 100644 --- a/msm8998/libbt-vendor/src/bt_vendor_qcom.c +++ b/msm8998/libbt-vendor/src/bt_vendor_qcom.c @@ -627,7 +627,7 @@ static int init(const bt_vendor_callbacks_t *cb, unsigned char *bdaddr) temp->rfkill_id = -1; temp->enable_extldo = FALSE; - temp->cb = cb; + temp->cb = (bt_vendor_callbacks_t*)cb; temp->ant_fd = -1; temp->soc_type = get_bt_soc_type(); soc_init(temp->soc_type); @@ -1296,6 +1296,9 @@ static void ssr_cleanup(int reason) int pwr_state = BT_VND_PWR_OFF; int ret; unsigned char trig_ssr = 0xEE; +#ifndef ENABLE_ANT + (void)reason; // unused +#endif ALOGI("++%s", __FUNCTION__); @@ -1447,6 +1450,5 @@ const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE = { sizeof(bt_vendor_interface_t), init, op, - cleanup, - ssr_cleanup + cleanup }; |