From 13977a2d78ca713556d9f6b47c196beb827502f2 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Sat, 8 Jan 2011 15:51:05 -0800 Subject: [PATCH] work around an unused variable warning --- src/subprocess.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.7.4