diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-02 15:34:31 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-10-03 18:15:18 -0700 |
commit | 872df74e02f2a7caae54b5813238fccff115e179 (patch) | |
tree | d44101e2da413cec0d301d9684ffc03c8b56c3c8 | |
parent | 1355b80eaeeb2c63bdbc72a9f883d2391161700a (diff) | |
download | chre-872df74e02f2a7caae54b5813238fccff115e179.tar.gz |
Use -Werror in system/chre
* Fix unused variable warning.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I85ae8e234836fc38b81beba8538c0494fc896725
-rw-r--r-- | Android.bp | 3 | ||||
-rw-r--r-- | host/common/test/chre_test_client.cc | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -33,6 +33,7 @@ cc_library_static { "liblog", "libutils", ], + cflags: ["-Wall", "-Werror"], } cc_test { @@ -45,6 +46,7 @@ cc_test { srcs: [ "host/common/test/chre_test_client.cc", ], + cflags: ["-Wall", "-Werror"], shared_libs: [ "libcutils", "liblog", @@ -62,6 +64,7 @@ cc_library_shared { srcs: [ "host/hal_generic/generic_context_hub.cc", ], + cflags: ["-Wall", "-Werror"], shared_libs: [ "libcutils", "liblog", diff --git a/host/common/test/chre_test_client.cc b/host/common/test/chre_test_client.cc index 994c7097..602a6e3e 100644 --- a/host/common/test/chre_test_client.cc +++ b/host/common/test/chre_test_client.cc @@ -198,7 +198,6 @@ void sendUnloadNanoappRequest(SocketClient& client, uint64_t appId) { } // anonymous namespace int main() { - int ret = -1; SocketClient client; sp<SocketCallbacks> callbacks = new SocketCallbacks(); |