Use -Werror in external/pcre

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Id5434498b4a5b9dd0bc695c92740f4a78dab75f6
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",