release-request-b4bc7b84-64b6-4176-8f16-ce17068fad13-for-git_pi-release-4370135 snap-temp-L93500000107644030

Change-Id: I04e1e5751870767f4abe215c453edd30f802a549
diff --git a/Android.bp b/Android.bp
index ef9b8a0..34c0718 100644
--- a/Android.bp
+++ b/Android.bp
@@ -28,6 +28,7 @@
 cc_test {
     name: "scrypt_test",
     srcs: ["tests/scrypt_test.cpp"],
+    cflags: ["-Wall", "-Werror"],
     shared_libs: ["libcrypto"],
     static_libs: ["libscrypt_static"],
 }
diff --git a/sources.bp b/sources.bp
index a2ba3f4..8c7f886 100644
--- a/sources.bp
+++ b/sources.bp
@@ -25,6 +25,10 @@
     cflags: [
         "-DHAVE_CONFIG_H",
         "-DUSE_OPENSSL_PBKDF2",
+        "-Wall",
+        "-Werror",
+        "-Wno-error=implicit-function-declaration",
+        "-Wno-error=unused-variable",
     ],
 
     export_include_dirs: [