Skip to content
Snippets Groups Projects
Commit 32e42276 authored by David Duarte's avatar David Duarte
Browse files

Remove -Wno-unused-parameter from bluetooth_cflags

Bug: 299772495
Test: mmm packages/modules/Bluetooth
Change-Id: I71342aafd09d4e2799e320d9e68efdb51105f52c
parent a368ac18
No related branches found
No related tags found
No related merge requests found
Showing
with 76 additions and 10 deletions
......@@ -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",
......
......@@ -149,6 +149,7 @@ cc_library_shared {
"com.android.btservices",
],
min_sdk_version: "Tiramisu",
cflags: ["-Wno-unused-parameter"],
}
cc_library {
......
......@@ -47,6 +47,7 @@ cc_library_shared {
"libbluetooth_audio_session",
"libhidlbase",
],
cflags: ["-Wno-unused-parameter"],
}
cc_test {
......
......@@ -67,6 +67,7 @@ cc_library_static {
host_supported: true,
cflags: [
"-DBUILDCFG",
"-Wno-unused-parameter",
],
apex_available: [
"com.android.btservices",
......
......@@ -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"],
}
......@@ -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: [
......
......@@ -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"],
}
......@@ -101,4 +101,5 @@ cc_test {
"libgmock",
],
header_libs: ["libbluetooth_headers"],
cflags: ["-Wno-unused-parameter"],
}
......@@ -14,6 +14,7 @@ cc_library_static {
defaults: ["fluoride_defaults"],
cflags: [
"-DG722_SUPPORT_MALLOC",
"-Wno-unused-parameter",
],
srcs: [
"g722_decode.cc",
......
......@@ -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 {
......
......@@ -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"],
}
......@@ -41,4 +41,5 @@ cc_fuzz {
cc: ["android-bluetooth-security@google.com"],
componentid: 27441,
},
cflags: ["-Wno-unused-parameter"],
}
......@@ -81,4 +81,5 @@ cc_test {
cfi: true,
misc_undefined: ["bounds"],
},
cflags: ["-Wno-unused-parameter"],
}
......@@ -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"],
}
......@@ -153,6 +153,7 @@ cc_test {
},
cflags: [
"-DLIB_OSI_INTERNAL",
"-Wno-unused-parameter",
],
sanitize: {
address: true,
......
......@@ -27,6 +27,9 @@ cc_fuzz {
"libgmock",
"libosi",
],
cflags: ["-Wno-unused-function"],
cflags: [
"-Wno-unused-function",
"-Wno-unused-parameter",
],
header_libs: ["libbluetooth_headers"],
}
......@@ -21,4 +21,5 @@ cc_fuzz {
static_libs: [
"libosi",
],
cflags: ["-Wno-unused-parameter"],
}
......@@ -22,4 +22,5 @@ cc_fuzz {
"libchrome",
"libosi",
],
cflags: ["-Wno-unused-parameter"],
}
......@@ -19,4 +19,5 @@ cc_fuzz {
"liblog",
"libosi",
],
cflags: ["-Wno-unused-parameter"],
}
......@@ -85,6 +85,7 @@ cc_test {
],
cflags: [
"-DBUILDCFG",
"-Wno-unused-parameter",
],
target: {
android: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment