Use -Werror in external/libpng

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I452b9afa3871f765866f0f49baf1c6ac4904b4b6
diff --git a/Android.bp b/Android.bp
index 9f16bba..d5649c5 100644
--- a/Android.bp
+++ b/Android.bp
@@ -22,6 +22,8 @@
     ],
     cflags: [
         "-std=gnu89",
+        "-Wall",
+        "-Werror",
         "-Wno-unused-parameter",
     ],
     arch: {
@@ -111,6 +113,7 @@
     gtest: false,
     srcs: ["pngtest.c"],
     name: "pngtest",
+    cflags: ["-Wall", "-Werror"],
     shared_libs: [
         "libpng",
     ],