Merge "Suppress non-critical warnings in external/llvm."
diff --git a/Android.bp b/Android.bp
index 0f8dba6..1f3d9e0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -2,6 +2,10 @@
name: "llvm-defaults",
defaults: ["llvm-defaults-no-generated-headers"],
header_libs: ["llvm-headers"],
+ tidy_checks: [
+ "-google-build-*",
+ "-google-global-*",
+ ],
}
// This module defines all of the defaults used to compiled llvm, except for
@@ -41,6 +45,11 @@
"-Wno-error=user-defined-warnings",
],
+ tidy_checks: [
+ "-google-build-*",
+ "-google-global-*",
+ ],
+
header_libs: ["llvm-headers-no-generated-headers"],
target: {
diff --git a/lib/Android.bp b/lib/Android.bp
index 33b2cf2..9af201d 100644
--- a/lib/Android.bp
+++ b/lib/Android.bp
@@ -1,6 +1,12 @@
cc_defaults {
name: "llvm-lib-defaults",
defaults: ["llvm-defaults"],
+ cflags: [
+ "-W",
+ "-Wall",
+ "-Wno-unused-lambda-capture",
+ "-Wno-unused-parameter",
+ ],
export_header_lib_headers: ["llvm-headers"],
target: {
windows: {
diff --git a/lib/Fuzzer/Android.bp b/lib/Fuzzer/Android.bp
index b0b152c..5405f63 100644
--- a/lib/Fuzzer/Android.bp
+++ b/lib/Fuzzer/Android.bp
@@ -18,6 +18,12 @@
name: "libLLVMFuzzerNoMain",
host_supported: true,
include_dirs: ["external/compiler-rt/include"],
+ cflags: [
+ "-W",
+ "-Wall",
+ "-Wno-unused-lambda-capture",
+ "-Wno-unused-parameter",
+ ],
srcs: ["*.cpp"],
exclude_srcs: ["FuzzerMain.cpp"],
sanitize: {
@@ -29,6 +35,12 @@
cc_library_static {
name: "libLLVMFuzzer",
host_supported: true,
+ cflags: [
+ "-W",
+ "-Wall",
+ "-Wno-unused-lambda-capture",
+ "-Wno-unused-parameter",
+ ],
srcs: ["FuzzerMain.cpp"],
whole_static_libs: ["libLLVMFuzzerNoMain"],
sanitize: {
diff --git a/lib/TableGen/Android.bp b/lib/TableGen/Android.bp
index c331017..a9e0682 100644
--- a/lib/TableGen/Android.bp
+++ b/lib/TableGen/Android.bp
@@ -1,6 +1,12 @@
cc_library_static {
name: "libLLVMTableGen",
defaults: ["llvm-defaults-no-generated-headers"],
+ cflags: [
+ "-W",
+ "-Wall",
+ "-Wno-unused-lambda-capture",
+ "-Wno-unused-parameter",
+ ],
srcs: ["*.cpp"],
target: {
// llvm-defaults turns off host builds by default, turn it back on for