diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-07-06 23:58:38 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-07-06 23:58:38 (GMT) |
commit | cb4eaeabe5448d4872c57d0b37566f83992f5959 (patch) | |
tree | 28aed11259055a1a16497feb27caf3cbd0ff334f | |
parent | 5aa8ec2067167e67345f56c1b735ed7ff92f336a (diff) | |
download | CMake-cb4eaeabe5448d4872c57d0b37566f83992f5959.zip CMake-cb4eaeabe5448d4872c57d0b37566f83992f5959.tar.gz CMake-cb4eaeabe5448d4872c57d0b37566f83992f5959.tar.bz2 |
COMP: fix a few more warnings
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 4 | ||||
-rw-r--r-- | Source/CTest/cmCTestTestHandler.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index d2c8edf..c294979 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -1147,7 +1147,7 @@ void cmCTestTestHandler::LoadTestList() for(int i =0; i < numTestsToRun; i++) { cmCTestTestProperties p; - int numArgs; + int numArgs = 0; ok = this->GetValue("Name:", p.Name, fin); ok = ok && this->GetValue("Directory:", p.Directory, fin); ok = ok && this->GetValue("Args:", numArgs, fin); @@ -1763,7 +1763,7 @@ const char* cmCTestTestHandler::GetTestStatus(int status) } //---------------------------------------------------------------------- -void cmCTestTestHandler::ExpandTestsToRunInformation(int numTests) +void cmCTestTestHandler::ExpandTestsToRunInformation(size_t numTests) { if (this->TestsToRunString.empty()) { diff --git a/Source/CTest/cmCTestTestHandler.h b/Source/CTest/cmCTestTestHandler.h index 1b92831..b56f817 100644 --- a/Source/CTest/cmCTestTestHandler.h +++ b/Source/CTest/cmCTestTestHandler.h @@ -218,7 +218,7 @@ private: std::string FindTheExecutable(const char *exe); const char* GetTestStatus(int status); - void ExpandTestsToRunInformation(int numPossibleTests); + void ExpandTestsToRunInformation(size_t numPossibleTests); std::vector<cmStdString> CustomPreTest; std::vector<cmStdString> CustomPostTest; |