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

Commit 38831748 authored by Henri Chataing's avatar Henri Chataing
Browse files

system/btif/Android.bp: Enforce -Wunused-parameter

Bug: 299772495
Test: m com.android.btservices
Flag: EXEMPT, mechanical refactor
Change-Id: I0cdf54ea822783073f861affc126a7962fba547f
parent b1942c82
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -165,9 +165,6 @@ cc_library_static {
        "libbtif-core",
        "libflatbuffers-cpp",
    ],
    cflags: [
        "-Wno-unused-parameter",
    ],
    apex_available: [
        "com.android.btservices",
    ],
@@ -391,9 +388,6 @@ cc_test {
        "libchrome",
        "libosi",
    ],
    cflags: [
        "-Wno-unused-parameter",
    ],
    shared_libs: [
        "libbase",
        "liblog",
@@ -432,9 +426,6 @@ cc_test {
        "libbase",
        "liblog",
    ],
    cflags: [
        "-Wno-unused-parameter",
    ],
}

// btif rc unit tests for target
@@ -480,9 +471,6 @@ cc_test {
            shared_libs: ["libstatssocket"],
        },
    },
    cflags: [
        "-Wno-unused-parameter",
    ],
    sanitize: {
        address: true,
        cfi: true,
@@ -520,9 +508,6 @@ cc_test {
        "libcom.android.sysprop.bluetooth.wrapped",
        "libgmock",
    ],
    cflags: [
        "-Wno-unused-parameter",
    ],
}

cc_test {
+1 −1
Original line number Diff line number Diff line
@@ -579,7 +579,7 @@ void AvrcpService::SendFolderUpdate(bool available_players, bool addressed_playe
}

// Send out the track changed info to update the playback state for each device
void AvrcpService::SendActiveDeviceChanged(const RawAddress& address) {
void AvrcpService::SendActiveDeviceChanged(const RawAddress& /*address*/) {
  SendMediaUpdate(false, true, false);
}

+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ void BtaAvCoPeer::setCodecConfig(const uint8_t* new_codec_config) {
}

void BtaAvCoPeerCache::Init(const std::vector<btav_a2dp_codec_config_t>& codec_priorities,
                            std::vector<btav_a2dp_codec_info_t>* supported_codecs) {
                            std::vector<btav_a2dp_codec_info_t>* /*supported_codecs*/) {
  std::lock_guard<std::recursive_mutex> lock(codec_lock_);

  codec_priorities_ = codec_priorities;
+1 −1
Original line number Diff line number Diff line
@@ -1037,7 +1037,7 @@ void bta_hh_co_send_hid_info(btif_hh_device_t* p_dev, const char* dev_name, uint
 * Returns          void.
 *
 ******************************************************************************/
void bta_hh_co_set_rpt_rsp(uint8_t dev_handle, uint8_t status) {
void bta_hh_co_set_rpt_rsp([[maybe_unused]] uint8_t dev_handle, [[maybe_unused]] uint8_t status) {
#if ENABLE_UHID_SET_REPORT
  log::verbose("dev_handle = {}", dev_handle);

+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@
using namespace bluetooth;
using bluetooth::audio::a2dp::BluetoothAudioStatus;

void btif_a2dp_on_idle(const RawAddress& peer_addr, const A2dpType local_a2dp_type) {
void btif_a2dp_on_idle(const RawAddress& /*peer_addr*/, const A2dpType local_a2dp_type) {
  log::verbose("Peer stream endpoint type:{}",
               peer_stream_endpoint_text(btif_av_get_peer_sep(local_a2dp_type)));
  if (btif_av_get_peer_sep(local_a2dp_type) == AVDT_TSEP_SNK) {
Loading