diff options
author | Evan Martin <martine@danga.com> | 2011-09-03 15:52:18 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-09-03 15:52:18 (GMT) |
commit | 35db614cf7bd94bfd816a03a32b88286b8abdcd1 (patch) | |
tree | fbed57aa1f3f57bde3086cf7a8972f0f88364e71 | |
parent | 1c4823f68c94143400c414f78348d6f3c3c2ba83 (diff) | |
parent | e7822cbd79c294c32e147fd01e0103bb52fa5a23 (diff) | |
download | Ninja-35db614cf7bd94bfd816a03a32b88286b8abdcd1.zip Ninja-35db614cf7bd94bfd816a03a32b88286b8abdcd1.tar.gz Ninja-35db614cf7bd94bfd816a03a32b88286b8abdcd1.tar.bz2 |
Merge pull request #92 from pcc/fix-warning
Fix a Clang self-assign warning by casting result to void
-rw-r--r-- | src/subprocess.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subprocess.cc b/src/subprocess.cc index c2e306c..005d368 100644 --- a/src/subprocess.cc +++ b/src/subprocess.cc @@ -75,8 +75,8 @@ bool Subprocess::Start(SubprocessSet* set, const string& command) { // If we get here, something went wrong; the execl should have // replaced us. char* err = strerror(errno); - int unused = write(error_pipe, err, strlen(err)); - unused = unused; // If the write fails, there's nothing we can do. + // If the write fails, there's nothing we can do. + (void) write(error_pipe, err, strlen(err)); _exit(1); } |