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>
diff --git a/stack/gap/gap_utils.c b/stack/gap/gap_utils.c
index d253a99..866ad7a 100644
--- a/stack/gap/gap_utils.c
+++ b/stack/gap/gap_utils.c
@@ -18,6 +18,7 @@
#include <string.h>
#include "bt_target.h"
+#include "bt_utils.h"
#include "gap_int.h"
/*****************************************************************************/
@@ -116,6 +117,7 @@
{
tGAP_INFO *p_cb;
UINT8 index;
+ UNUSED(p_eir);
GAP_TRACE_EVENT6 ("GAP Inquiry Results Callback (bdaddr [%02x%02x%02x%02x%02x%02x])",
p_results->remote_bd_addr[0], p_results->remote_bd_addr[1],
@@ -305,6 +307,8 @@
return (GAP_EOINQDB);
#else
+ UNUSED(devname);
+ UNUSED(bd_addr);
/* No data available because we are not automatically saving the data */
return (GAP_NO_DATA_AVAIL);
#endif