summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSubmitHandler.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-24 13:41:01 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-24 13:41:01 (GMT)
commit05d8429206d7192e328c2646cbc2b9776362dd7b (patch)
tree21627ed4f80f79ae8094f90e2e4268542b965a00 /Source/CTest/cmCTestSubmitHandler.cxx
parentb7514580f91fd7accb1426eaed52eaa93f54ae3d (diff)
downloadCMake-05d8429206d7192e328c2646cbc2b9776362dd7b.zip
CMake-05d8429206d7192e328c2646cbc2b9776362dd7b.tar.gz
CMake-05d8429206d7192e328c2646cbc2b9776362dd7b.tar.bz2
COMP: Remove warnings
Diffstat (limited to 'Source/CTest/cmCTestSubmitHandler.cxx')
-rw-r--r--Source/CTest/cmCTestSubmitHandler.cxx21
1 files changed, 10 insertions, 11 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx
index 32eff81..9e9104f 100644
--- a/Source/CTest/cmCTestSubmitHandler.cxx
+++ b/Source/CTest/cmCTestSubmitHandler.cxx
@@ -256,8 +256,8 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
for ( kk = 0; kk < remote_file.size(); kk ++ )
{
char c = remote_file[kk];
- char hex[4] = { 0, 0, 0, 0 };
- hex[0] = c;
+ char hexCh[4] = { 0, 0, 0, 0 };
+ hexCh[0] = c;
switch ( c )
{
case '+':
@@ -268,11 +268,11 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
case ' ':
case '=':
case '%':
- sprintf(hex, "%%%02X", (int)c);
- ofile.append(hex);
+ sprintf(hexCh, "%%%02X", (int)c);
+ ofile.append(hexCh);
break;
default:
- ofile.append(hex);
+ ofile.append(hexCh);
}
}
cmStdString upload_as
@@ -407,8 +407,8 @@ bool cmCTestSubmitHandler::TriggerUsingHTTP(const std::set<cmStdString>& files,
for ( kk = rfile.begin(); kk < rfile.end(); ++ kk)
{
char c = *kk;
- char hex[4] = { 0, 0, 0, 0 };
- hex[0] = c;
+ char hexCh[4] = { 0, 0, 0, 0 };
+ hexCh[0] = c;
switch ( c )
{
case '+':
@@ -419,11 +419,11 @@ bool cmCTestSubmitHandler::TriggerUsingHTTP(const std::set<cmStdString>& files,
case ' ':
case '=':
case '%':
- sprintf(hex, "%%%02X", (int)c);
- ofile.append(hex);
+ sprintf(hexCh, "%%%02X", (int)c);
+ ofile.append(hexCh);
break;
default:
- ofile.append(hex);
+ ofile.append(hexCh);
}
}
cmStdString turl
@@ -760,7 +760,6 @@ int cmCTestSubmitHandler::ProcessHandler()
{
ofs << "Upload files:" << std::endl;
int cnt = 0;
- cmCTest::tm_SetOfStrings::iterator it;
for ( it = files.begin(); it != files.end(); ++ it )
{
ofs << cnt << "\t" << it->c_str() << std::endl;