Commit 7f6ff733 authored by Zach's avatar Zach
Browse files

Fixed 2 unused variable warnings

parent d4adde13
...@@ -152,14 +152,12 @@ int cmProcess::CheckOutput(double timeout) ...@@ -152,14 +152,12 @@ int cmProcess::CheckOutput(double timeout)
} }
else if(pipe == cmsysProcess_Pipe_STDOUT) else if(pipe == cmsysProcess_Pipe_STDOUT)
{ {
// Append to the stdout buffer. // Append to the stdout buffer.
std::vector<char>::size_type size = this->StdOutBuffer.size();
this->StdOutBuffer.insert(this->StdOutBuffer.end(), data, data+length); this->StdOutBuffer.insert(this->StdOutBuffer.end(), data, data+length);
} }
else if(pipe == cmsysProcess_Pipe_STDERR) else if(pipe == cmsysProcess_Pipe_STDERR)
{ {
// Append to the stderr buffer. // Append to the stderr buffer.
std::vector<char>::size_type size = this->StdErrorBuffer.size();
this->StdErrorBuffer.insert(this->StdErrorBuffer.end(), this->StdErrorBuffer.insert(this->StdErrorBuffer.end(),
data, data+length); data, data+length);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment