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

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

system/osi/test/fuzzers: Enforce -Wunused-parameter

Bug: 299772495
Test: m com.android.btservices
Flag: EXEMPT, mechanical refactor
Change-Id: I354095d19580b14229bfc9c41257644d99c3abd2
parent 7004a39f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ cc_fuzz {
    ],
    cflags: [
        "-Wno-unused-function",
        "-Wno-unused-parameter",
    ],
    header_libs: ["libbluetooth_headers"],
    fuzz_config: {
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ static MessageLoopThread* thread = new MessageLoopThread("fake main thread");

bluetooth::common::MessageLoopThread* get_main_thread() { return thread; }

static void cb(void* data) {
static void cb(void* /*data*/) {
  ++cb_counter;
  semaphore.post();
}
+0 −1
Original line number Diff line number Diff line
@@ -23,5 +23,4 @@ cc_fuzz {
        "libbluetooth_log",
        "libosi",
    ],
    cflags: ["-Wno-unused-parameter"],
}
+2 −1
Original line number Diff line number Diff line
@@ -19,7 +19,8 @@

#define MAX_BUFFER_SIZE 4096

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size) {
extern "C" int LLVMFuzzerTestOneInput([[maybe_unused]] const uint8_t* Data,
                                      [[maybe_unused]] size_t Size) {
// Our functions are only defined with __GLIBC__
#if __GLIBC__
  // Init our wrapper
+0 −1
Original line number Diff line number Diff line
@@ -24,5 +24,4 @@ cc_fuzz {
        "libchrome",
        "libosi",
    ],
    cflags: ["-Wno-unused-parameter"],
}
Loading