aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-09-29 11:29:00 -0700
committerChih-Hung Hsieh <chh@google.com>2017-09-29 11:59:15 -0700
commitc1bc48fca7085f01a2ddbdb8e594af937235e695 (patch)
tree7bcfb22b2056aa579ce8cec2d01f7d9957e86c31
parent846573ce25e334e2709b3b4d7c5ab39d0a2b3bec (diff)
downloadtinycompress-c1bc48fca7085f01a2ddbdb8e594af937235e695.tar.gz
Use -Werror in external/tinycompress
* Suppress non-critical warnings. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Id0a4f4431f8420dbbe20ec541aa3be6a77567b7c
-rw-r--r--Android.bp13
1 files changed, 11 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index c22852c..f0000f1 100644
--- a/Android.bp
+++ b/Android.bp
@@ -2,7 +2,12 @@ cc_library_shared {
name: "libtinycompress",
vendor: true,
- cflags: ["-Wno-macro-redefined"],
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wno-macro-redefined",
+ "-Wno-unused-function",
+ ],
export_include_dirs: ["include"],
srcs: [
"compress.c",
@@ -21,7 +26,11 @@ cc_binary {
name: "cplay",
vendor: true,
- cflags: ["-Wno-macro-redefined"],
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wno-macro-redefined"
+ ],
local_include_dirs: ["include"],
srcs: ["cplay.c"],
shared_libs: [