summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx4
-rw-r--r--Source/CTest/cmCTestTestHandler.h2
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;