COMP: Remove warnings
This commit is contained in:
parent
b7514580f9
commit
05d8429206
|
@ -256,8 +256,8 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
|
||||||
for ( kk = 0; kk < remote_file.size(); kk ++ )
|
for ( kk = 0; kk < remote_file.size(); kk ++ )
|
||||||
{
|
{
|
||||||
char c = remote_file[kk];
|
char c = remote_file[kk];
|
||||||
char hex[4] = { 0, 0, 0, 0 };
|
char hexCh[4] = { 0, 0, 0, 0 };
|
||||||
hex[0] = c;
|
hexCh[0] = c;
|
||||||
switch ( c )
|
switch ( c )
|
||||||
{
|
{
|
||||||
case '+':
|
case '+':
|
||||||
|
@ -268,11 +268,11 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
|
||||||
case ' ':
|
case ' ':
|
||||||
case '=':
|
case '=':
|
||||||
case '%':
|
case '%':
|
||||||
sprintf(hex, "%%%02X", (int)c);
|
sprintf(hexCh, "%%%02X", (int)c);
|
||||||
ofile.append(hex);
|
ofile.append(hexCh);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ofile.append(hex);
|
ofile.append(hexCh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmStdString upload_as
|
cmStdString upload_as
|
||||||
|
@ -407,8 +407,8 @@ bool cmCTestSubmitHandler::TriggerUsingHTTP(const std::set<cmStdString>& files,
|
||||||
for ( kk = rfile.begin(); kk < rfile.end(); ++ kk)
|
for ( kk = rfile.begin(); kk < rfile.end(); ++ kk)
|
||||||
{
|
{
|
||||||
char c = *kk;
|
char c = *kk;
|
||||||
char hex[4] = { 0, 0, 0, 0 };
|
char hexCh[4] = { 0, 0, 0, 0 };
|
||||||
hex[0] = c;
|
hexCh[0] = c;
|
||||||
switch ( c )
|
switch ( c )
|
||||||
{
|
{
|
||||||
case '+':
|
case '+':
|
||||||
|
@ -419,11 +419,11 @@ bool cmCTestSubmitHandler::TriggerUsingHTTP(const std::set<cmStdString>& files,
|
||||||
case ' ':
|
case ' ':
|
||||||
case '=':
|
case '=':
|
||||||
case '%':
|
case '%':
|
||||||
sprintf(hex, "%%%02X", (int)c);
|
sprintf(hexCh, "%%%02X", (int)c);
|
||||||
ofile.append(hex);
|
ofile.append(hexCh);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ofile.append(hex);
|
ofile.append(hexCh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmStdString turl
|
cmStdString turl
|
||||||
|
@ -760,7 +760,6 @@ int cmCTestSubmitHandler::ProcessHandler()
|
||||||
{
|
{
|
||||||
ofs << "Upload files:" << std::endl;
|
ofs << "Upload files:" << std::endl;
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
cmCTest::tm_SetOfStrings::iterator it;
|
|
||||||
for ( it = files.begin(); it != files.end(); ++ it )
|
for ( it = files.begin(); it != files.end(); ++ it )
|
||||||
{
|
{
|
||||||
ofs << cnt << "\t" << it->c_str() << std::endl;
|
ofs << cnt << "\t" << it->c_str() << std::endl;
|
||||||
|
|
Loading…
Reference in New Issue