diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-03 09:57:55 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-10-13 16:25:16 -0700 |
commit | c7edf078f92c7ce083f8c243a79f8aecdfff4ac1 (patch) | |
tree | d7816094d61913df8ee8c17e60763ccd050c4631 /tools/bit/adb.cpp | |
parent | 26817938f6966928488e92de73359c3887006642 (diff) |
Use -Werror in frameworks/base
* Fix unused variable and return value warnings.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I890e65a20848d00559ba5a4f9691be1347b456af
Diffstat (limited to 'tools/bit/adb.cpp')
-rw-r--r-- | tools/bit/adb.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/bit/adb.cpp b/tools/bit/adb.cpp index 0c8424de566d..93fda5434307 100644 --- a/tools/bit/adb.cpp +++ b/tools/bit/adb.cpp @@ -293,7 +293,9 @@ run_instrumentation_test(const string& packageName, const string& runner, const print_command(cmd); int fds[2]; - pipe(fds); + if (0 != pipe(fds)) { + return errno; + } pid_t pid = fork(); |