summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-09-30 01:10:16 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-09-30 01:10:16 +0000
commit6764b80f8782844f369cb9bcd68ffd4fc9853334 (patch)
tree812797d81b655ecef246a48c6f06dc5a49285786
parentdd011de61600242a2349cd5e9710730f08562d88 (diff)
parent462fd64d0ce8fca5ca7e624792aadd564d0a3e4d (diff)
downloadzlib-6764b80f8782844f369cb9bcd68ffd4fc9853334.tar.gz
Merge "Use -Werror in external/zlib" am: 77813b7ffe am: 897d9a491e am: 5f9c3c5b5c
am: 462fd64d0c Change-Id: Iab5c2b9a87085394742799b08ee34ce96d83d4ac
-rw-r--r--Android.bp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 403cf71..7a4faf3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,6 +14,8 @@ cc_library {
"-O3",
"-DUSE_MMAP",
"-DZLIB_CONST",
+ "-Wall",
+ "-Werror",
],
stl: "none",
export_include_dirs: ["."],
@@ -59,6 +61,7 @@ cc_library {
cc_binary_host {
name: "minigzip",
srcs: ["src/test/minigzip.c"],
+ cflags: ["-Wall", "-Werror"],
static_libs: ["libz"],
stl: "none",
}
@@ -66,6 +69,7 @@ cc_binary_host {
cc_binary {
name: "zlib_example",
srcs: ["src/test/example.c"],
+ cflags: ["-Wall", "-Werror"],
shared_libs: ["libz"],
stl: "none",
}
@@ -73,6 +77,7 @@ cc_binary {
cc_binary_host {
name: "zlib_example_host",
srcs: ["src/test/example.c"],
+ cflags: ["-Wall", "-Werror"],
static_libs: ["libz"],
stl: "none",
}