From c7edf078f92c7ce083f8c243a79f8aecdfff4ac1 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 3 Oct 2017 09:57:55 -0700 Subject: Use -Werror in frameworks/base * Fix unused variable and return value warnings. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I890e65a20848d00559ba5a4f9691be1347b456af --- tools/bit/command.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/bit/command.cpp') diff --git a/tools/bit/command.cpp b/tools/bit/command.cpp index 9a8449bf9356..1ff7c221b26e 100644 --- a/tools/bit/command.cpp +++ b/tools/bit/command.cpp @@ -105,7 +105,9 @@ get_command_output(const Command& command, int* err, bool quiet) } int fds[2]; - pipe(fds); + if (0 != pipe(fds)) { + return string(); + } pid_t pid = fork(); -- cgit v1.2.3-59-g8ed1b