hal: fix compiler warnings which are now treated as errors
With CLANG enabled and -Wall & -Werror being set in
LOCAL_CFLAGS, all warnings are treated as errors.
This commit fixes all the warnings most of which are
about unused variables and functions.
Change-Id: I32c6593fa0ad6a4fdca5dc8e6c76982a146a8bc6
diff --git a/hal/audio_extn/hfp.c b/hal/audio_extn/hfp.c
index 5a5afcc..1fba5c6 100644
--- a/hal/audio_extn/hfp.c
+++ b/hal/audio_extn/hfp.c
@@ -133,7 +133,7 @@
static int32_t start_hfp(struct audio_device *adev,
struct str_parms *parms __unused)
{
- int32_t i, ret = 0;
+ int32_t ret = 0;
struct audio_usecase *uc_info;
int32_t pcm_dev_rx_id, pcm_dev_tx_id, pcm_dev_asm_rx_id, pcm_dev_asm_tx_id;
@@ -243,7 +243,7 @@
static int32_t stop_hfp(struct audio_device *adev)
{
- int32_t i, ret = 0;
+ int32_t ret = 0;
struct audio_usecase *uc_info;
ALOGD("%s: enter", __func__);