From c1bc48fca7085f01a2ddbdb8e594af937235e695 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 29 Sep 2017 11:29:00 -0700 Subject: [PATCH] Use -Werror in external/tinycompress * Suppress non-critical warnings. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Id0a4f4431f8420dbbe20ec541aa3be6a77567b7c --- Android.bp | 13 +++++++++++-- 1 file 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: [