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

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

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

Bug: 299772495
Test: m com.android.btservices
Flag: EXEMPT, mechanical refactor
Change-Id: I4f6606d631127025a487223abf02f5ce0cdaac4f
parent 84e3abe2
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -104,6 +104,9 @@ cc_test {
        "fluoride_osi_defaults",
        "mts_defaults",
    ],
    cflags: [
        "-DLIB_OSI_INTERNAL",
    ],
    host_supported: true,
    srcs: [
        "test/alarm_test.cc",
@@ -155,10 +158,6 @@ cc_test {
            ],
        },
    },
    cflags: [
        "-DLIB_OSI_INTERNAL",
        "-Wno-unused-parameter",
    ],
    sanitize: {
        address: true,
        cfi: false,
+2 −2
Original line number Diff line number Diff line
@@ -50,12 +50,12 @@ extern int64_t TIMER_INTERVAL_FOR_WAKELOCK_IN_MS;

static bool is_wake_lock_acquired = false;

static int acquire_wake_lock_cb(const char* lock_name) {
static int acquire_wake_lock_cb(const char* /*lock_name*/) {
  is_wake_lock_acquired = true;
  return BT_STATUS_SUCCESS;
}

static int release_wake_lock_cb(const char* lock_name) {
static int release_wake_lock_cb(const char* /*lock_name*/) {
  is_wake_lock_acquired = false;
  return BT_STATUS_SUCCESS;
}
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ static void fixed_queue_ready(fixed_queue_t* queue, void* /* context */) {
  future_ready(received_message_future, msg);
}

static void test_queue_entry_free_cb(void* data) {
static void test_queue_entry_free_cb(void* /*data*/) {
  // Don't free the data, because we are testing only whether the callback
  // is called.
  test_queue_entry_free_counter++;
+2 −2
Original line number Diff line number Diff line
@@ -26,12 +26,12 @@

static bool is_wake_lock_acquired = false;

static int acquire_wake_lock_cb(const char* lock_name) {
static int acquire_wake_lock_cb(const char* /*lock_name*/) {
  is_wake_lock_acquired = true;
  return BT_STATUS_SUCCESS;
}

static int release_wake_lock_cb(const char* lock_name) {
static int release_wake_lock_cb(const char* /*lock_name*/) {
  is_wake_lock_acquired = false;
  return BT_STATUS_SUCCESS;
}