summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-07-04 14:10:30 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-07-04 14:10:30 (GMT)
commit112d377fbb59f95e23c936091e8c3085bfb62f83 (patch)
tree012d0a3ddf5f74861f6b6d6f43fb11ccd9ee0663
parentfba54c56f232d0022726649a3111a9deab6ba1d0 (diff)
downloadCMake-112d377fbb59f95e23c936091e8c3085bfb62f83.zip
CMake-112d377fbb59f95e23c936091e8c3085bfb62f83.tar.gz
CMake-112d377fbb59f95e23c936091e8c3085bfb62f83.tar.bz2
COMP: fix more warnings
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx35
1 files changed, 20 insertions, 15 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index f5643ac..bec9543 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -1004,20 +1004,21 @@ bool cmCTestTestHandler::GetValue(const char* tag,
std::ifstream& fin)
{
std::string line;
+ bool ret = true;
cmSystemTools::GetLineFromStream(fin, line);
if(line == tag)
{
fin >> value;
- cmSystemTools::GetLineFromStream(fin, line); // read blank line
+ ret = cmSystemTools::GetLineFromStream(fin, line); // read blank line
}
else
{
cmCTestLog(this->CTest, ERROR_MESSAGE,
"parse error: missing tag: "
<< tag << " found [" << line << "]" << std::endl);
- return false;
+ ret = false;
}
- return true;
+ return ret;
}
bool cmCTestTestHandler::GetValue(const char* tag,
@@ -1026,19 +1027,20 @@ bool cmCTestTestHandler::GetValue(const char* tag,
{
std::string line;
cmSystemTools::GetLineFromStream(fin, line);
+ bool ret = true;
if(line == tag)
{
fin >> value;
- cmSystemTools::GetLineFromStream(fin, line); // read blank line
+ ret = cmSystemTools::GetLineFromStream(fin, line); // read blank line
}
else
{
cmCTestLog(this->CTest, ERROR_MESSAGE,
"parse error: missing tag: "
<< tag << " found [" << line << "]" << std::endl);
- return false;
+ ret = false;
}
- return true;
+ return ret;
}
bool cmCTestTestHandler::GetValue(const char* tag,
@@ -1047,19 +1049,20 @@ bool cmCTestTestHandler::GetValue(const char* tag,
{
std::string line;
cmSystemTools::GetLineFromStream(fin, line);
+ bool ret = true;
if(line == tag)
{
fin >> value;
- cmSystemTools::GetLineFromStream(fin, line); // read blank line
+ ret = cmSystemTools::GetLineFromStream(fin, line); // read blank line
}
else
{
cmCTestLog(this->CTest, ERROR_MESSAGE,
"parse error: missing tag: "
<< tag << " found [" << line << "]" << std::endl);
- return false;
+ ret = false;
}
- return true;
+ return ret;
}
bool cmCTestTestHandler::GetValue(const char* tag,
@@ -1068,19 +1071,20 @@ bool cmCTestTestHandler::GetValue(const char* tag,
{
std::string line;
cmSystemTools::GetLineFromStream(fin, line);
+ bool ret = true;
if(line == tag)
{
fin >> value;
- cmSystemTools::GetLineFromStream(fin, line); // read blank line
+ ret = cmSystemTools::GetLineFromStream(fin, line); // read blank line
}
else
{
cmCTestLog(this->CTest, ERROR_MESSAGE,
"parse error: missing tag: "
<< tag << " found [" << line.c_str() << "]" << std::endl);
- return false;
+ ret = false;
}
- return true;
+ return ret;
}
bool cmCTestTestHandler::GetValue(const char* tag,
@@ -1089,18 +1093,19 @@ bool cmCTestTestHandler::GetValue(const char* tag,
{
std::string line;
cmSystemTools::GetLineFromStream(fin, line);
+ bool ret = true;
if(line == tag)
{
- return cmSystemTools::GetLineFromStream(fin, value);
+ ret = cmSystemTools::GetLineFromStream(fin, value);
}
else
{
cmCTestLog(this->CTest, ERROR_MESSAGE,
"parse error: missing tag: "
<< tag << " found [" << line << "]" << std::endl);
- return false;
+ ret = false;
}
- return true;
+ return ret;
}