Merge "Use -Werror in dalvik"
diff --git a/dexdump/Android.bp b/dexdump/Android.bp
index 123e62f..3ea4471 100644
--- a/dexdump/Android.bp
+++ b/dexdump/Android.bp
@@ -23,6 +23,12 @@
srcs: ["DexDump.cpp"],
include_dirs: ["dalvik"],
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wno-unused-function",
+ "-Wno-unused-variable",
+ ],
target: {
android: {
static_libs: [
diff --git a/libdex/Android.bp b/libdex/Android.bp
index b68e6af..95e3a5f 100644
--- a/libdex/Android.bp
+++ b/libdex/Android.bp
@@ -43,6 +43,13 @@
static_libs: ["liblog"],
whole_static_libs: ["libziparchive"],
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wno-conversion-null",
+ "-Wno-unused-function",
+ "-Wno-unused-variable",
+ ],
target: {
android: {
shared_libs: ["libutils"],
diff --git a/tools/hprof-conv/Android.bp b/tools/hprof-conv/Android.bp
index 4956a74..4a7a317 100644
--- a/tools/hprof-conv/Android.bp
+++ b/tools/hprof-conv/Android.bp
@@ -15,6 +15,7 @@
cc_binary_host {
name: "hprof-conv",
srcs: ["HprofConv.c"],
+ cflags: ["-Wall", "-Werror"],
target: {
windows: {
enabled: true,