work around an unused variable warning
authorEvan Martin <martine@danga.com>
Sat, 8 Jan 2011 23:51:05 +0000 (15:51 -0800)
committerEvan Martin <martine@danga.com>
Sat, 8 Jan 2011 23:51:05 +0000 (15:51 -0800)
src/subprocess.cc

index 7bf4fc3..168ac10 100644 (file)
@@ -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);
   }