Commit 6ea22e65 authored by Sean McBride's avatar Sean McBride

Suppressed clang -Wcomma warnings with void cast

Change-Id: I8bd634ecc1bdc035492c145d3a66478dee56bb06
parent 4847aedd
......@@ -4632,7 +4632,7 @@ std::string SystemInformationImplementation::RunProcess(std::vector<const char*>
double timeout = 255;
int pipe; // pipe id as returned by kwsysProcess_WaitForData()
while( ( pipe = kwsysProcess_WaitForData(gp,&data,&length,&timeout),
while( ( static_cast<void>(pipe = kwsysProcess_WaitForData(gp,&data,&length,&timeout)),
(pipe == kwsysProcess_Pipe_STDOUT || pipe == kwsysProcess_Pipe_STDERR) ) ) // wait for 1s
{
buffer.append(data, length);
......
......@@ -4758,8 +4758,9 @@ bool SystemTools::GetLineFromStream(std::istream& is,
// been reached. Clear the fail bit just before reading.
while(!haveNewline &&
leftToRead != 0 &&
(is.clear(is.rdstate() & ~std::ios::failbit),
is.getline(buffer, bufferSize), is.gcount() > 0))
(static_cast<void>(is.clear(is.rdstate() & ~std::ios::failbit)),
static_cast<void>(is.getline(buffer, bufferSize)),
is.gcount() > 0))
{
// We have read at least one byte.
haveData = true;
......
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