summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-30 12:55:58 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-30 12:55:58 (GMT)
commitbbfc747f2e63dcc57ba983cc5aec09bf0f5547b4 (patch)
treee0f0c8bcf7abcff8eb1a7603844329a521d2654f /Source/cmCTest.cxx
parent362ce0c32d019c799816a156e5ff87a0c65becc3 (diff)
downloadCMake-bbfc747f2e63dcc57ba983cc5aec09bf0f5547b4.zip
CMake-bbfc747f2e63dcc57ba983cc5aec09bf0f5547b4.tar.gz
CMake-bbfc747f2e63dcc57ba983cc5aec09bf0f5547b4.tar.bz2
ENH: Remove warnings about unused variables
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index c1c3331..e59a48b 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -209,16 +209,17 @@ std::string cmCTest::MakeXMLSafe(const std::string& str)
{
cmOStringStream ost;
char buffer[10];
- int lcnt = 0;
+ // By uncommenting the lcnt code, it will put newline every 120 characters
+ //int lcnt = 0;
for (std::string::size_type pos = 0; pos < str.size(); pos ++ )
{
unsigned char ch = str[pos];
if ( (ch > 126 || ch < 32) && ch != 9 && ch != 10 && ch != 13 )
{
- sprintf(buffer, "&gt;%d&lt;", (int)ch);
+ sprintf(buffer, "&lt;%d&gt;", (int)ch);
//sprintf(buffer, "&#x%0x;", (unsigned int)ch);
ost << buffer;
- lcnt += 4;
+ //lcnt += 4;
}
else
{
@@ -227,10 +228,12 @@ std::string cmCTest::MakeXMLSafe(const std::string& str)
case '&': ost << "&amp;"; break;
case '<': ost << "&lt;"; break;
case '>': ost << "&gt;"; break;
- case '\n': ost << "\n"; lcnt = 0; break;
+ case '\n': ost << "\n";
+ //lcnt = 0;
+ break;
default: ost << ch;
}
- lcnt ++;
+ //lcnt ++;
}
//if ( lcnt > 120 )
// {
@@ -2982,7 +2985,7 @@ int cmCTest::RunConfigurationScript()
std::string command;
std::string output;
int retVal = 0;
- bool res = 0;
+ bool res;
// do an initial cvs update on the src dir
const char *cvsCmd = mf->GetDefinition("CTEST_CVS_COMMAND");