summaryrefslogtreecommitdiffstats
path: root/Source/cmExecProgramCommand.cxx
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2019-01-12 01:48:19 (GMT)
committerSean McBride <sean@rogue-research.com>2019-01-12 01:48:19 (GMT)
commit5ff7fb592e5b9c5a6a0f05055a2bde5623e8cc54 (patch)
tree688fa13ec49befb499cbc95ad78f85d701aebdee /Source/cmExecProgramCommand.cxx
parent5a283b79e5fe1739142cc513a9a701855849b2f8 (diff)
downloadCMake-5ff7fb592e5b9c5a6a0f05055a2bde5623e8cc54.zip
CMake-5ff7fb592e5b9c5a6a0f05055a2bde5623e8cc54.tar.gz
CMake-5ff7fb592e5b9c5a6a0f05055a2bde5623e8cc54.tar.bz2
Fixed all but one clang -Wcomma warning
Diffstat (limited to 'Source/cmExecProgramCommand.cxx')
-rw-r--r--Source/cmExecProgramCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx
index ea4cd40..e7f8a01 100644
--- a/Source/cmExecProgramCommand.cxx
+++ b/Source/cmExecProgramCommand.cxx
@@ -217,7 +217,7 @@ bool cmExecProgramCommand::RunCommand(const char* command, std::string& output,
int p;
cmProcessOutput processOutput(encoding);
std::string strdata;
- while ((p = cmsysProcess_WaitForData(cp, &data, &length, nullptr), p)) {
+ while ((p = cmsysProcess_WaitForData(cp, &data, &length, nullptr))) {
if (p == cmsysProcess_Pipe_STDOUT || p == cmsysProcess_Pipe_STDERR) {
if (verbose) {
processOutput.DecodeText(data, length, strdata);