diff options
author | Brad King <brad.king@kitware.com> | 2011-07-28 13:04:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-07-28 14:43:11 (GMT) |
commit | a343bc1c764c87b20edbdf960d870fd4b084ce8a (patch) | |
tree | 18765a05cf9325cde057fbb5915c1d9858d8c311 /Source/cmSystemTools.cxx | |
parent | 642f10066a5c9b33e8736b9ca013a44023c21b2c (diff) | |
download | CMake-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.cxx | 2 |
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) { |