aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-09-28 14:42:50 -0700
committerChih-Hung Hsieh <chh@google.com>2017-09-28 14:45:43 -0700
commit76670a0ac7490865192a6d4edf87cd10b9126f39 (patch)
tree550d1ed398d738c049548afa5dac547b1e644130
parenta80c5de7e9f205ae9a94fdd94521d0855bbaf091 (diff)
downloadlibpng-76670a0ac7490865192a6d4edf87cd10b9126f39.tar.gz
Use -Werror in external/libpng
Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I452b9afa3871f765866f0f49baf1c6ac4904b4b6
-rw-r--r--Android.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 9f16bbadc..d5649c557 100644
--- a/Android.bp
+++ b/Android.bp
@@ -22,6 +22,8 @@ cc_defaults {
],
cflags: [
"-std=gnu89",
+ "-Wall",
+ "-Werror",
"-Wno-unused-parameter",
],
arch: {
@@ -111,6 +113,7 @@ cc_test {
gtest: false,
srcs: ["pngtest.c"],
name: "pngtest",
+ cflags: ["-Wall", "-Werror"],
shared_libs: [
"libpng",
],