summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Duarte <licorne@google.com> 2023-09-10 00:23:48 +0000
committer David Duarte <licorne@google.com> 2023-09-10 03:14:06 +0000
commit32e42276053ce5e27cc0debaee65335339aa947b (patch)
tree002cd1504e1549179ef2f514fa9d85f677660671
parenta368ac188ae967801c932c4848b62c7200107db4 (diff)
Remove -Wno-unused-parameter from bluetooth_cflags
Bug: 299772495 Test: mmm packages/modules/Bluetooth Change-Id: I71342aafd09d4e2799e320d9e68efdb51105f52c
-rw-r--r--Android.bp2
-rw-r--r--android/app/Android.bp1
-rw-r--r--system/audio_bluetooth_hw/Android.bp1
-rw-r--r--system/audio_hal_interface/Android.bp1
-rw-r--r--system/bta/Android.bp15
-rw-r--r--system/btif/Android.bp34
-rw-r--r--system/common/Android.bp4
-rw-r--r--system/device/Android.bp1
-rw-r--r--system/embdrv/g722/Android.bp1
-rw-r--r--system/gd/Android.bp9
-rw-r--r--system/gd/dumpsys/bundler/Android.bp2
-rw-r--r--system/gd/l2cap/fuzz/Android.bp1
-rw-r--r--system/hci/Android.bp1
-rw-r--r--system/main/Android.bp3
-rw-r--r--system/osi/Android.bp1
-rw-r--r--system/osi/test/fuzzers/alarm/Android.bp5
-rw-r--r--system/osi/test/fuzzers/compat/Android.bp1
-rw-r--r--system/osi/test/fuzzers/fixed_queue/Android.bp1
-rw-r--r--system/osi/test/fuzzers/list/Android.bp1
-rw-r--r--system/packet/Android.bp1
-rw-r--r--system/packet/tests/fuzzers/Android.bp25
-rw-r--r--system/profile/avrcp/Android.bp7
-rw-r--r--system/stack/Android.bp19
-rw-r--r--system/stack/test/fuzzers/a2dp/Android.bp1
-rw-r--r--system/stack/test/fuzzers/a2dp/codec/Android.bp3
-rw-r--r--system/stack/test/fuzzers/sdp/Android.bp1
-rw-r--r--system/test/suite/Android.bp1
27 files changed, 132 insertions, 11 deletions
diff --git a/Android.bp b/Android.bp
index aef08f38e9..9e7f818b54 100644
--- a/Android.bp
+++ b/Android.bp
@@ -73,8 +73,6 @@ cc_defaults {
"-Wall",
"-Werror",
"-Wextra",
- // there are too many unused parameters in all the code.
- "-Wno-unused-parameter",
],
c_std: "c99",
cpp_std: "c++17",
diff --git a/android/app/Android.bp b/android/app/Android.bp
index 4aa6be714c..73fac4ad6b 100644
--- a/android/app/Android.bp
+++ b/android/app/Android.bp
@@ -149,6 +149,7 @@ cc_library_shared {
"com.android.btservices",
],
min_sdk_version: "Tiramisu",
+ cflags: ["-Wno-unused-parameter"],
}
cc_library {
diff --git a/system/audio_bluetooth_hw/Android.bp b/system/audio_bluetooth_hw/Android.bp
index 158bc3e202..d91da98532 100644
--- a/system/audio_bluetooth_hw/Android.bp
+++ b/system/audio_bluetooth_hw/Android.bp
@@ -47,6 +47,7 @@ cc_library_shared {
"libbluetooth_audio_session",
"libhidlbase",
],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
diff --git a/system/audio_hal_interface/Android.bp b/system/audio_hal_interface/Android.bp
index acb92ae6e6..47e7b4966b 100644
--- a/system/audio_hal_interface/Android.bp
+++ b/system/audio_hal_interface/Android.bp
@@ -67,6 +67,7 @@ cc_library_static {
host_supported: true,
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
apex_available: [
"com.android.btservices",
diff --git a/system/bta/Android.bp b/system/bta/Android.bp
index 2b1dc1b937..c5d3469276 100644
--- a/system/bta/Android.bp
+++ b/system/bta/Android.bp
@@ -124,6 +124,7 @@ cc_library_static {
"vc/vc.cc",
],
cflags: [
+ "-Wno-unused-parameter",
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default",
],
@@ -188,6 +189,7 @@ cc_library_static {
"sys/utl.cc",
],
cflags: [
+ "-Wno-unused-parameter",
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default",
],
@@ -263,6 +265,7 @@ cc_test {
":audio_set_scenarios_bfbs",
":audio_set_scenarios_json",
],
+ cflags: ["-Wno-unused-parameter"],
}
// bta unit tests for target
@@ -306,6 +309,7 @@ cc_test {
"libosi",
"libstatslog_bt",
],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -439,6 +443,7 @@ cc_test {
],
},
},
+ cflags: ["-Wno-unused-parameter"],
}
// csis unit tests for host
@@ -498,6 +503,7 @@ cc_test {
undefined: true,
},
},
+ cflags: ["-Wno-unused-parameter"],
}
// groups unit tests for host
@@ -545,6 +551,7 @@ cc_test {
undefined: true,
},
},
+ cflags: ["-Wno-unused-parameter"],
}
// bta unit tests for host
@@ -597,6 +604,7 @@ cc_test {
sanitize: {
cfi: false,
},
+ cflags: ["-Wno-unused-parameter"],
}
genrule {
@@ -746,6 +754,7 @@ cc_test {
cfi: false,
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -843,6 +852,7 @@ cc_test {
cfi: false,
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -944,6 +954,7 @@ cc_test {
undefined: true,
},
},
+ cflags: ["-Wno-unused-parameter"],
}
// health status unit tests for host
@@ -1048,6 +1059,7 @@ cc_test {
undefined: true,
},
},
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1117,6 +1129,7 @@ cc_test {
undefined: true,
},
},
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1178,6 +1191,7 @@ cc_test {
undefined: true,
},
},
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1251,4 +1265,5 @@ cc_test {
undefined: true,
},
},
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/btif/Android.bp b/system/btif/Android.bp
index dec79d76e5..3929afc9e8 100644
--- a/system/btif/Android.bp
+++ b/system/btif/Android.bp
@@ -160,6 +160,7 @@ cc_library_static {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
apex_available: [
"com.android.btservices",
@@ -236,8 +237,9 @@ cc_library_static {
"libcrypto",
],
cflags: [
- /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-DBUILDCFG",
+ "-Wno-unused-parameter",
+ /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default",
],
apex_available: [
@@ -355,7 +357,10 @@ cc_test {
"libchrome",
"libosi",
],
- cflags: ["-DBUILDCFG"],
+ cflags: [
+ "-DBUILDCFG",
+ "-Wno-unused-parameter",
+ ],
shared_libs: ["liblog"],
}
@@ -388,7 +393,10 @@ cc_test {
"libchrome",
"libosi",
],
- cflags: ["-DBUILDCFG"],
+ cflags: [
+ "-DBUILDCFG",
+ "-Wno-unused-parameter",
+ ],
shared_libs: ["liblog"],
}
@@ -434,7 +442,10 @@ cc_test {
shared_libs: ["libstatssocket"],
},
},
- cflags: ["-DBUILDCFG"],
+ cflags: [
+ "-DBUILDCFG",
+ "-Wno-unused-parameter",
+ ],
sanitize: {
address: true,
cfi: true,
@@ -511,7 +522,10 @@ cc_test {
"libcom.android.sysprop.bluetooth",
"libosi",
],
- cflags: ["-DBUILDCFG"],
+ cflags: [
+ "-DBUILDCFG",
+ "-Wno-unused-parameter",
+ ],
}
cc_test {
@@ -625,7 +639,10 @@ cc_test {
"libgmock",
"libstatslog_bt",
],
- cflags: ["-DBUILDCFG"],
+ cflags: [
+ "-DBUILDCFG",
+ "-Wno-unused-parameter",
+ ],
target: {
android: {
static_libs: [
@@ -759,7 +776,10 @@ cc_test {
"libgmock",
"libstatslog_bt",
],
- cflags: ["-DBUILDCFG"],
+ cflags: [
+ "-DBUILDCFG",
+ "-Wno-unused-parameter",
+ ],
target: {
android: {
static_libs: [
diff --git a/system/common/Android.bp b/system/common/Android.bp
index 61632dba82..2702e11d16 100644
--- a/system/common/Android.bp
+++ b/system/common/Android.bp
@@ -57,6 +57,7 @@ cc_library_static {
"libbt-platform-protos-lite",
"libbt_shim_bridge",
],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -112,6 +113,7 @@ cc_test {
cfi: false,
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -138,6 +140,7 @@ cc_test {
"libosi",
],
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_benchmark {
@@ -161,4 +164,5 @@ cc_benchmark {
"libosi",
],
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/device/Android.bp b/system/device/Android.bp
index c418b831bb..3b7fc75a55 100644
--- a/system/device/Android.bp
+++ b/system/device/Android.bp
@@ -101,4 +101,5 @@ cc_test {
"libgmock",
],
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/embdrv/g722/Android.bp b/system/embdrv/g722/Android.bp
index a893aee3fb..63af8f58ea 100644
--- a/system/embdrv/g722/Android.bp
+++ b/system/embdrv/g722/Android.bp
@@ -14,6 +14,7 @@ cc_library_static {
defaults: ["fluoride_defaults"],
cflags: [
"-DG722_SUPPORT_MALLOC",
+ "-Wno-unused-parameter",
],
srcs: [
"g722_decode.cc",
diff --git a/system/gd/Android.bp b/system/gd/Android.bp
index 7e67654359..5ea840badb 100644
--- a/system/gd/Android.bp
+++ b/system/gd/Android.bp
@@ -192,6 +192,7 @@ cc_library {
],
min_sdk_version: "31",
static_libs: ["libchrome"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_library {
@@ -205,6 +206,7 @@ cc_library {
cflags: [
"-DFUZZ_TARGET",
"-DUSE_FAKE_TIMERS",
+ "-Wno-unused-parameter",
],
static_libs: ["libchrome"],
}
@@ -219,6 +221,7 @@ cc_library {
],
cflags: [
"-DUSE_FAKE_TIMERS",
+ "-Wno-unused-parameter",
],
static_libs: [
"libchrome",
@@ -307,6 +310,7 @@ cc_binary {
address: true,
cfi: true,
},
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -409,6 +413,7 @@ cc_test {
address: true,
},
min_sdk_version: "Tiramisu",
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -458,6 +463,7 @@ cc_test {
},
},
min_sdk_version: "30",
+ cflags: ["-Wno-unused-parameter"],
}
cc_defaults {
@@ -518,6 +524,7 @@ cc_fuzz {
cc: ["android-bluetooth-security@google.com"],
componentid: 27441,
},
+ cflags: ["-Wno-unused-parameter"],
}
cc_fuzz {
@@ -527,6 +534,7 @@ cc_fuzz {
":BluetoothHalFuzzSources",
"hci/fuzz/hci_layer_fuzz_test.cc",
],
+ cflags: ["-Wno-unused-parameter"],
}
cc_fuzz {
@@ -539,6 +547,7 @@ cc_fuzz {
cc: ["android-bluetooth-security@google.com"],
componentid: 27441,
},
+ cflags: ["-Wno-unused-parameter"],
}
cc_benchmark {
diff --git a/system/gd/dumpsys/bundler/Android.bp b/system/gd/dumpsys/bundler/Android.bp
index 64059976bb..0a5f57d368 100644
--- a/system/gd/dumpsys/bundler/Android.bp
+++ b/system/gd/dumpsys/bundler/Android.bp
@@ -68,6 +68,7 @@ cc_binary_host {
defaults: [
"bluetooth_flatbuffer_bundler_defaults",
],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test_host {
@@ -84,4 +85,5 @@ cc_test_host {
test_options: {
unit_test: true,
},
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/gd/l2cap/fuzz/Android.bp b/system/gd/l2cap/fuzz/Android.bp
index 9912147cd5..7cd46ce4fc 100644
--- a/system/gd/l2cap/fuzz/Android.bp
+++ b/system/gd/l2cap/fuzz/Android.bp
@@ -41,4 +41,5 @@ cc_fuzz {
cc: ["android-bluetooth-security@google.com"],
componentid: 27441,
},
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/hci/Android.bp b/system/hci/Android.bp
index fd1dd47b60..e6a2a79bec 100644
--- a/system/hci/Android.bp
+++ b/system/hci/Android.bp
@@ -81,4 +81,5 @@ cc_test {
cfi: true,
misc_undefined: ["bounds"],
},
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/main/Android.bp b/system/main/Android.bp
index aa89cf8004..b3891cd9f5 100644
--- a/system/main/Android.bp
+++ b/system/main/Android.bp
@@ -61,6 +61,7 @@ cc_library_static {
"libbt_shim_bridge",
],
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_library {
@@ -146,6 +147,7 @@ cc_library_static {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: [
],
@@ -246,4 +248,5 @@ cc_test {
],
min_sdk_version: "Tiramisu",
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/osi/Android.bp b/system/osi/Android.bp
index 2326dc360a..48a0620b48 100644
--- a/system/osi/Android.bp
+++ b/system/osi/Android.bp
@@ -153,6 +153,7 @@ cc_test {
},
cflags: [
"-DLIB_OSI_INTERNAL",
+ "-Wno-unused-parameter",
],
sanitize: {
address: true,
diff --git a/system/osi/test/fuzzers/alarm/Android.bp b/system/osi/test/fuzzers/alarm/Android.bp
index b28bcca2ae..bf5ecab9a7 100644
--- a/system/osi/test/fuzzers/alarm/Android.bp
+++ b/system/osi/test/fuzzers/alarm/Android.bp
@@ -27,6 +27,9 @@ cc_fuzz {
"libgmock",
"libosi",
],
- cflags: ["-Wno-unused-function"],
+ cflags: [
+ "-Wno-unused-function",
+ "-Wno-unused-parameter",
+ ],
header_libs: ["libbluetooth_headers"],
}
diff --git a/system/osi/test/fuzzers/compat/Android.bp b/system/osi/test/fuzzers/compat/Android.bp
index 50a680a492..b462b1aed2 100644
--- a/system/osi/test/fuzzers/compat/Android.bp
+++ b/system/osi/test/fuzzers/compat/Android.bp
@@ -21,4 +21,5 @@ cc_fuzz {
static_libs: [
"libosi",
],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/osi/test/fuzzers/fixed_queue/Android.bp b/system/osi/test/fuzzers/fixed_queue/Android.bp
index 60846b017b..10cc65658c 100644
--- a/system/osi/test/fuzzers/fixed_queue/Android.bp
+++ b/system/osi/test/fuzzers/fixed_queue/Android.bp
@@ -22,4 +22,5 @@ cc_fuzz {
"libchrome",
"libosi",
],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/osi/test/fuzzers/list/Android.bp b/system/osi/test/fuzzers/list/Android.bp
index b3b4644939..ff86765173 100644
--- a/system/osi/test/fuzzers/list/Android.bp
+++ b/system/osi/test/fuzzers/list/Android.bp
@@ -19,4 +19,5 @@ cc_fuzz {
"liblog",
"libosi",
],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/packet/Android.bp b/system/packet/Android.bp
index 6c2ab45bf1..309e8c6e6c 100644
--- a/system/packet/Android.bp
+++ b/system/packet/Android.bp
@@ -85,6 +85,7 @@ cc_test {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
target: {
android: {
diff --git a/system/packet/tests/fuzzers/Android.bp b/system/packet/tests/fuzzers/Android.bp
index 0d075503dc..ed27340541 100644
--- a/system/packet/tests/fuzzers/Android.bp
+++ b/system/packet/tests/fuzzers/Android.bp
@@ -37,6 +37,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -72,6 +73,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -107,6 +109,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -142,6 +145,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -177,6 +181,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -212,6 +217,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -247,6 +253,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -282,6 +289,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -317,6 +325,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -352,6 +361,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -387,6 +397,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -422,6 +433,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -457,6 +469,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -492,6 +505,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -527,6 +541,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -562,6 +577,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -597,6 +613,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -632,6 +649,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -667,6 +685,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -702,6 +721,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -737,6 +757,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -772,6 +793,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -807,6 +829,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -842,6 +865,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
@@ -877,6 +901,7 @@ cc_fuzz {
],
cflags: [
"-DBUILDCFG",
+ "-Wno-unused-parameter",
],
shared_libs: ["liblog"],
}
diff --git a/system/profile/avrcp/Android.bp b/system/profile/avrcp/Android.bp
index 6b829e2933..4bbc6bae08 100644
--- a/system/profile/avrcp/Android.bp
+++ b/system/profile/avrcp/Android.bp
@@ -41,6 +41,7 @@ cc_library_static {
],
min_sdk_version: "Tiramisu",
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -87,7 +88,10 @@ cc_test {
cfi: false,
},
- cflags: ["-DBUILDCFG"],
+ cflags: [
+ "-DBUILDCFG",
+ "-Wno-unused-parameter",
+ ],
header_libs: ["libbluetooth_headers"],
}
@@ -133,4 +137,5 @@ cc_fuzz {
enabled: false,
},
},
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/stack/Android.bp b/system/stack/Android.bp
index 774cc6b71e..586cf8f2f7 100644
--- a/system/stack/Android.bp
+++ b/system/stack/Android.bp
@@ -154,6 +154,7 @@ cc_library_static {
],
host_supported: true,
min_sdk_version: "Tiramisu",
+ cflags: ["-Wno-unused-parameter"],
}
filegroup {
@@ -285,6 +286,7 @@ cc_library_static {
"BluetoothGeneratedPackets_h",
],
cflags: [
+ "-Wno-unused-parameter",
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default",
],
@@ -793,6 +795,7 @@ cc_test {
cfi: false,
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
// Bluetooth stack smp unit tests for target
@@ -863,6 +866,7 @@ cc_test {
"libosi",
],
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
// Bluetooth stack advertise data parsing unit tests for target
@@ -936,6 +940,7 @@ cc_test {
cfi: false,
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1000,6 +1005,7 @@ cc_test {
misc_undefined: ["bounds"],
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1067,6 +1073,7 @@ cc_test {
misc_undefined: ["bounds"],
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1078,6 +1085,7 @@ cc_test {
],
cflags: [
"-DUNIT_TESTS",
+ "-Wno-unused-parameter",
],
test_suites: ["device-tests"],
host_supported: true,
@@ -1222,6 +1230,7 @@ cc_test {
misc_undefined: ["bounds"],
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
// gatt sr hash test
@@ -1285,6 +1294,7 @@ cc_test {
},
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
// Iso manager unit tests
@@ -1337,6 +1347,7 @@ cc_test {
},
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
// EATT unit tests
@@ -1404,6 +1415,7 @@ cc_test {
cfi: false,
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1532,6 +1544,7 @@ cc_test {
},
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1647,6 +1660,7 @@ cc_test {
},
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1718,6 +1732,7 @@ cc_test {
},
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1812,6 +1827,7 @@ cc_test {
},
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1902,6 +1918,7 @@ cc_test {
},
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
cc_test {
@@ -1988,6 +2005,7 @@ cc_test {
},
},
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
// Bluetooth stack connection multiplexing
@@ -2038,4 +2056,5 @@ cc_test {
"liblog",
],
header_libs: ["libbluetooth_headers"],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/stack/test/fuzzers/a2dp/Android.bp b/system/stack/test/fuzzers/a2dp/Android.bp
index 65b56b4895..debbf061b0 100644
--- a/system/stack/test/fuzzers/a2dp/Android.bp
+++ b/system/stack/test/fuzzers/a2dp/Android.bp
@@ -14,4 +14,5 @@ cc_fuzz {
srcs: [
"fuzz_a2dp.cc",
],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/stack/test/fuzzers/a2dp/codec/Android.bp b/system/stack/test/fuzzers/a2dp/codec/Android.bp
index 7c7825db3d..8ae2c8590b 100644
--- a/system/stack/test/fuzzers/a2dp/codec/Android.bp
+++ b/system/stack/test/fuzzers/a2dp/codec/Android.bp
@@ -24,6 +24,7 @@ cc_fuzz {
srcs: [
"fuzz_a2dp_codec.cc",
],
+ cflags: ["-Wno-unused-parameter"],
}
cc_fuzz {
@@ -33,6 +34,7 @@ cc_fuzz {
srcs: [
"fuzz_a2dp_codec_info.cc",
],
+ cflags: ["-Wno-unused-parameter"],
}
cc_fuzz {
@@ -42,4 +44,5 @@ cc_fuzz {
srcs: [
"fuzz_a2dp_codec_config.cc",
],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/stack/test/fuzzers/sdp/Android.bp b/system/stack/test/fuzzers/sdp/Android.bp
index bc5aaa702b..86a8c11fdd 100644
--- a/system/stack/test/fuzzers/sdp/Android.bp
+++ b/system/stack/test/fuzzers/sdp/Android.bp
@@ -14,4 +14,5 @@ cc_fuzz {
srcs: [
"fuzz_sdp.cc",
],
+ cflags: ["-Wno-unused-parameter"],
}
diff --git a/system/test/suite/Android.bp b/system/test/suite/Android.bp
index c4d6195b83..3c0f161c4c 100644
--- a/system/test/suite/Android.bp
+++ b/system/test/suite/Android.bp
@@ -129,4 +129,5 @@ cc_test {
"libchrome",
"libevent",
],
+ cflags: ["-Wno-unused-parameter"],
}