From 6effe033d640636532dbe4884c72755cd6a5667c Mon Sep 17 00:00:00 2001 From: Arthur Dene Ice Date: Mon, 5 May 2014 14:04:22 -0700 Subject: [PATCH] storing return value of write, may want to use in the future. this gets rid of warning. --- common/ProcLauncher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/ProcLauncher.cpp b/common/ProcLauncher.cpp index da0cd81e9..a17c0c0e4 100644 --- a/common/ProcLauncher.cpp +++ b/common/ProcLauncher.cpp @@ -244,13 +244,13 @@ ProcLauncher::ProcRef ProcLauncher::Launch(Spec *&to_launch) { if(dup2(outfd, STDOUT_FILENO) == -1) { fprintf(stderr, "Unable to duplicate FD %d to %d. Log file will be empty: %s\n", outfd, STDOUT_FILENO, strerror(errno)); const char *err = "Unable to redirect stdout into this file. That sucks."; - write(outfd, err, strlen(err)); + auto writeSize = write(outfd, err, strlen(err)); } close(STDERR_FILENO); if(dup2(outfd, STDERR_FILENO) == -1) { //can no longer print to screen.. const char *err = "Unable to redirect stderr into this file. You might miss some error info in this log."; - write(outfd, err, strlen(err)); + auto writeSize = write(outfd, err, strlen(err)); } close(STDIN_FILENO);