Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f71e0760 authored by Chris Manton's avatar Chris Manton
Browse files

net_test_stack_btm: Remove Wno-unused-parameter

Bug: 332773679
Test: atest net_test_stack_btm
Flag: EXEMPT, Test Infrastructure
Change-Id: I516de77e014aaf0fee867580493d97e2877c3288
parent 8193d76f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1661,7 +1661,6 @@ cc_test {
        },
    },
    header_libs: ["libbluetooth_headers"],
    cflags: ["-Wno-unused-parameter"],
}

cc_test {
+2 −2
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ static bool acl_ble_common_connection(
void acl_ble_enhanced_connection_complete(
    const tBLE_BD_ADDR& address_with_type, uint16_t handle, tHCI_ROLE role,
    bool match, uint16_t conn_interval, uint16_t conn_latency,
    uint16_t conn_timeout, const RawAddress& local_rpa,
    uint16_t conn_timeout, const RawAddress& /* local_rpa */,
    const RawAddress& peer_rpa, tBLE_ADDR_TYPE peer_addr_type,
    bool can_read_discoverable_characteristics) {
  if (!acl_ble_common_connection(address_with_type, handle, role, match,
@@ -133,7 +133,7 @@ void acl_ble_enhanced_connection_complete_from_shim(
}

void acl_ble_connection_fail(const tBLE_BD_ADDR& address_with_type,
                             uint16_t handle, bool enhanced,
                             uint16_t /* handle */, bool /* enhanced */,
                             tHCI_STATUS status) {
  acl_set_locally_initiated(
      true);  // LE connection failures are always locally initiated
+6 −6
Original line number Diff line number Diff line
@@ -642,7 +642,7 @@ tBTM_STATUS BTM_SwitchRoleToCentral(const RawAddress& remote_bd_addr) {
 * Returns          void
 *
 ******************************************************************************/
void btm_acl_encrypt_change(uint16_t handle, uint8_t status,
void btm_acl_encrypt_change(uint16_t handle, uint8_t /* status */,
                            uint8_t encr_enable) {
  tACL_CONN* p = internal_.acl_get_connection_from_handle(handle);
  if (p == nullptr) {
@@ -813,7 +813,7 @@ extern void bta_gattc_continue_discovery_if_needed(const RawAddress& bd_addr,
 *
 ******************************************************************************/
static void maybe_chain_more_commands_after_read_remote_version_complete(
    uint8_t status, uint16_t handle) {
    uint8_t /* status */, uint16_t handle) {
  tACL_CONN* p_acl_cb = internal_.acl_get_connection_from_handle(handle);
  if (p_acl_cb == nullptr) {
    log::warn("Received remote version complete for unknown device");
@@ -2524,8 +2524,8 @@ void btm_acl_disconnected(tHCI_STATUS status, uint16_t handle,
}

void acl_create_classic_connection(const RawAddress& bd_addr,
                                   bool there_are_high_priority_channels,
                                   bool is_bonding) {
                                   bool /* there_are_high_priority_channels */,
                                   bool /* is_bonding */) {
  return bluetooth::shim::ACL_CreateClassicConnection(bd_addr);
}

@@ -2771,11 +2771,11 @@ void acl_process_extended_features(uint16_t handle, uint8_t current_page_number,
  }
}

void ACL_RegisterClient(struct acl_client_callback_s* callbacks) {
void ACL_RegisterClient(struct acl_client_callback_s* /* callbacks */) {
  log::debug("UNIMPLEMENTED");
}

void ACL_UnregisterClient(struct acl_client_callback_s* callbacks) {
void ACL_UnregisterClient(struct acl_client_callback_s* /* callbacks */) {
  log::debug("UNIMPLEMENTED");
}

+2 −2
Original line number Diff line number Diff line
@@ -803,8 +803,8 @@ void process_ssr_event(tHCI_STATUS status, uint16_t handle,
void btm_pm_on_sniff_subrating(tHCI_STATUS status, uint16_t handle,
                               uint16_t maximum_transmit_latency,
                               uint16_t maximum_receive_latency,
                               uint16_t minimum_remote_timeout,
                               uint16_t minimum_local_timeout) {
                               uint16_t /* minimum_remote_timeout */,
                               uint16_t /* minimum_local_timeout */) {
  process_ssr_event(status, handle, maximum_transmit_latency,
                    maximum_receive_latency);
}
+1 −1
Original line number Diff line number Diff line
@@ -191,7 +191,7 @@ void BTM_BleReadPhy(
                            base::Bind(&read_phy_cb, std::move(cb)));
}

void doNothing(uint8_t* data, uint16_t len) {}
void doNothing(uint8_t* /* data */, uint16_t /* len */) {}

void BTM_BleSetPhy(const RawAddress& bd_addr, uint8_t tx_phys, uint8_t rx_phys,
                   uint16_t phy_options) {
Loading