diff options
author | Brad King <brad.king@kitware.com> | 2014-05-15 14:16:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-05-15 14:16:48 (GMT) |
commit | b1b4d761a1991ce3634195b0b5be251ec43295c4 (patch) | |
tree | 6fe5e212c7579a74a21ddc5ea13484a67f375c3b /Source/CTest | |
parent | 775458dede98d28fe81ac878541a6ead735443fc (diff) | |
download | CMake-b1b4d761a1991ce3634195b0b5be251ec43295c4.zip CMake-b1b4d761a1991ce3634195b0b5be251ec43295c4.tar.gz CMake-b1b4d761a1991ce3634195b0b5be251ec43295c4.tar.bz2 |
cmCTestBuildAndTestHandler: Refactor local loop var
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestBuildAndTestHandler.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx index 4a3eec5..ac2196c 100644 --- a/Source/CTest/cmCTestBuildAndTestHandler.cxx +++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx @@ -173,7 +173,6 @@ struct cmSetupOutputCaptureCleanup //---------------------------------------------------------------------- int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring) { - unsigned int k; std::string cmakeOutString; cmSystemTools::SetErrorCallback(CMakeMessageCallback, &cmakeOutString); cmSystemTools::SetStdoutCallback(CMakeStdoutCallback, &cmakeOutString); @@ -369,7 +368,7 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring) std::vector<const char*> testCommand; testCommand.push_back(fullPath.c_str()); - for(k=0; k < this->TestCommandArgs.size(); ++k) + for(size_t k=0; k < this->TestCommandArgs.size(); ++k) { testCommand.push_back(this->TestCommandArgs[k].c_str()); } @@ -383,7 +382,7 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring) cmSystemTools::ChangeDirectory(this->BuildRunDir.c_str()); } out << "Running test command: \"" << fullPath << "\""; - for(k=0; k < this->TestCommandArgs.size(); ++k) + for(size_t k=0; k < this->TestCommandArgs.size(); ++k) { out << " \"" << this->TestCommandArgs[k] << "\""; } |