diff options
author | Evan Martin <martine@danga.com> | 2011-01-08 23:51:05 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-01-08 23:51:05 (GMT) |
commit | 13977a2d78ca713556d9f6b47c196beb827502f2 (patch) | |
tree | 70df30cd5c2eb1f39a85fd25c86d120d386b4a16 | |
parent | e8c29ba2d404f1e6487cd1da24e6fc9f56d68a7e (diff) | |
download | Ninja-13977a2d78ca713556d9f6b47c196beb827502f2.zip Ninja-13977a2d78ca713556d9f6b47c196beb827502f2.tar.gz Ninja-13977a2d78ca713556d9f6b47c196beb827502f2.tar.bz2 |
work around an unused variable warning
-rw-r--r-- | src/subprocess.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |