summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-07-28 13:04:45 (GMT)
committerBrad King <brad.king@kitware.com>2011-07-28 14:43:11 (GMT)
commita343bc1c764c87b20edbdf960d870fd4b084ce8a (patch)
tree18765a05cf9325cde057fbb5915c1d9858d8c311 /Source/cmSystemTools.cxx
parent642f10066a5c9b33e8736b9ca013a44023c21b2c (diff)
downloadCMake-a343bc1c764c87b20edbdf960d870fd4b084ce8a.zip
CMake-a343bc1c764c87b20edbdf960d870fd4b084ce8a.tar.gz
CMake-a343bc1c764c87b20edbdf960d870fd4b084ce8a.tar.bz2
RunSingleCommand: Avoid assignment in condition
Several compilers warn about this case even when an extra layer of parenthesis surrounds the assignment. Make the condition explicit.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 1971610..03364bd 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -615,7 +615,7 @@ bool cmSystemTools::RunSingleCommand(std::vector<cmStdString>const& command,
int pipe;
if ( output || outputflag != OUTPUT_NONE )
{
- while((pipe = cmsysProcess_WaitForData(cp, &data, &length, 0)))
+ while((pipe = cmsysProcess_WaitForData(cp, &data, &length, 0)) > 0)
{
if(output || outputflag != OUTPUT_NONE)
{