summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-09-29 11:24:49 -0700
committerChih-Hung Hsieh <chh@google.com>2017-09-29 11:50:14 -0700
commitbac10c18a2d9cb6986b5cc49e3f5abebe4e8299e (patch)
tree9b75aa8f414594457d02724634a4676d67a91ebb
parentc3d8c7e3117b64794ad80be55f2a536e7e7f5345 (diff)
Use -Werror in external/sqlite
* Supress non-critical warnings. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Id116ab578184a9d43ca4a8549e78889b79ea49aa
-rw-r--r--android/Android.bp8
1 files changed, 7 insertions, 1 deletions
diff --git a/android/Android.bp b/android/Android.bp
index d5a1312..9173a03 100644
--- a/android/Android.bp
+++ b/android/Android.bp
@@ -2,7 +2,13 @@ cc_library_static {
name: "libsqlite3_android",
vendor_available: true,
host_supported: true,
- cflags: ["-DSQLITE_ENABLE_ICU"],
+ cflags: [
+ "-DSQLITE_ENABLE_ICU",
+ "-Wall",
+ "-Werror",
+ "-Wno-unused-function",
+ "-Wno-unused-variable",
+ ],
srcs: [
"PhoneNumberUtils.cpp",
"OldPhoneNumberUtils.cpp",