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:
e8c29ba
)
work around an unused variable warning
author
Evan Martin
<martine@danga.com>
Sat, 8 Jan 2011 23:51:05 +0000
(15:51 -0800)
committer
Evan Martin
<martine@danga.com>
Sat, 8 Jan 2011 23:51:05 +0000
(15:51 -0800)
src/subprocess.cc
patch
|
blob
|
history
diff --git
a/src/subprocess.cc
b/src/subprocess.cc
index
7bf4fc3
..
168ac10
100644
(file)
--- 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);
}