summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-08-31 17:55:38 (GMT)
committerPeter Collingbourne <peter@pcc.me.uk>2011-09-01 03:50:24 (GMT)
commite7822cbd79c294c32e147fd01e0103bb52fa5a23 (patch)
tree62b43e02d30beb5b3edb8537cee2c9da0619a065 /src
parent679305757e68861885f1e5c819625d2f0bca6c0b (diff)
downloadNinja-e7822cbd79c294c32e147fd01e0103bb52fa5a23.zip
Ninja-e7822cbd79c294c32e147fd01e0103bb52fa5a23.tar.gz
Ninja-e7822cbd79c294c32e147fd01e0103bb52fa5a23.tar.bz2
Fix a Clang self-assign warning by casting result to void
Diffstat (limited to 'src')
-rw-r--r--src/subprocess.cc4
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);
}