Snap for 4373608 from 59a56520d65ab2d94fbfad24a9098f5c49da403e to pi-release

Change-Id: I805ef6db2132ad4b356bd98163e6dd1e6e283ccf
diff --git a/Android.bp b/Android.bp
index 15c9219..0d95274 100644
--- a/Android.bp
+++ b/Android.bp
@@ -31,7 +31,11 @@
 
 cc_defaults {
     name: "pcre_defaults",
-    cflags: ["-DHAVE_CONFIG_H"],
+    cflags: [
+        "-DHAVE_CONFIG_H",
+        "-Wall",
+        "-Werror",
+    ],
     tidy_checks: [
         "-google-build-using-namespace",
         "-google-global-names-in-headers",
@@ -65,7 +69,12 @@
 
 cc_library_shared {
     name: "libpcrecpp",
-    cflags: ["-Wno-unused-parameter"],
+    cflags: [
+        "-Wall",
+        "-Werror",
+        "-Wno-unused-parameter",
+        "-Wno-unused-variable",
+    ],
     tidy_checks: [
         "-google-build-using-namespace",
         "-google-global-names-in-headers",