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

Commit b18fa6ae authored by Konrad Adamczyk's avatar Konrad Adamczyk Committed by Shao-Chuan Lee
Browse files

Fix compile warnings in btm_sco_hfp_hal_linux.cc

Warnings are treated as errors under default build params, causing
failures.

Bug: 349247465
Test: m libbt-stack-core
Flag: EXEMPT, Floss-only changes
Change-Id: I5fc2fadf1f22fdda5d306315c6403e693800cf26
parent 2d10c8e5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ constexpr uint16_t HCI_DEV_NONE = 0xffff;
int btsocket_open_mgmt(uint16_t hci) {
  int fd = socket(PF_BLUETOOTH, SOCK_RAW | SOCK_NONBLOCK, BTPROTO_HCI);
  if (fd < 0) {
    log::debug("Failed to open BT socket.");
    log::debug("Failed to open BT socket, hci: %u", hci);
    return -errno;
  }

@@ -364,7 +364,7 @@ bool enable_offload(bool enable) {

static bool get_single_codec(int codec, bt_codec** out) {
  for (cached_codec_info& c : cached_codecs) {
    if (c.inner.codec == codec) {
    if (c.inner.codec == static_cast<uint64_t>(codec)) {
      *out = &c.inner;
      return true;
    }
@@ -443,7 +443,7 @@ void set_codec_datapath(tBTA_AG_UUID_CODEC codec_uuid) {

size_t get_packet_size(int codec) {
  for (const cached_codec_info& c : cached_codecs) {
    if (c.inner.codec == codec) {
    if (c.inner.codec == static_cast<uint64_t>(codec)) {
      return c.pkt_size;
    }
  }