projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6793057
)
Fix a Clang self-assign warning by casting result to void
author
Peter Collingbourne
<peter@pcc.me.uk>
Wed, 31 Aug 2011 17:55:38 +0000
(18:55 +0100)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 1 Sep 2011 03:50:24 +0000
(
04:50
+0100)
src/subprocess.cc
patch
|
blob
|
history
diff --git
a/src/subprocess.cc
b/src/subprocess.cc
index
c2e306c
..
005d368
100644
(file)
--- 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);
}