From: Evan Martin Date: Sat, 8 Jan 2011 23:51:05 +0000 (-0800) Subject: work around an unused variable warning X-Git-Tag: release-120715~532 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13977a2d78ca713556d9f6b47c196beb827502f2;p=platform%2Fupstream%2Fninja.git work around an unused variable warning --- diff --git a/src/subprocess.cc b/src/subprocess.cc index 7bf4fc3..168ac10 100644 --- a/src/subprocess.cc +++ b/src/subprocess.cc @@ -71,7 +71,8 @@ bool Subprocess::Start(const string& command) { // If we get here, something went wrong; the execl should have // replaced us. char* err = strerror(errno); - write(error_pipe, err, strlen(err)); + int unused = write(error_pipe, err, strlen(err)); + unused = unused; // If the write fails, there's nothing we can do. _exit(1); }