ENH: remove warnings from borland 6 compiler
This commit is contained in:
parent
cb9e995d0b
commit
0876c19dc8
@ -197,10 +197,9 @@ std::string cmCTest::MakeXMLSafe(const std::string& str)
|
|||||||
|
|
||||||
std::string cmCTest::MakeURLSafe(const std::string& str)
|
std::string cmCTest::MakeURLSafe(const std::string& str)
|
||||||
{
|
{
|
||||||
std::string::size_type pos = 0;
|
|
||||||
cmOStringStream ost;
|
cmOStringStream ost;
|
||||||
char buffer[10];
|
char buffer[10];
|
||||||
for ( pos = 0; pos < str.size(); pos ++ )
|
for ( std::string::size_type pos = 0; pos < str.size(); pos ++ )
|
||||||
{
|
{
|
||||||
unsigned char ch = str[pos];
|
unsigned char ch = str[pos];
|
||||||
if ( ( ch > 126 || ch < 32 ||
|
if ( ( ch > 126 || ch < 32 ||
|
||||||
|
@ -765,7 +765,7 @@ static void reginsert (char op, char* opnd) {
|
|||||||
place = opnd; // Op node, where operand used to be.
|
place = opnd; // Op node, where operand used to be.
|
||||||
*place++ = op;
|
*place++ = op;
|
||||||
*place++ = '\0';
|
*place++ = '\0';
|
||||||
*place++ = '\0';
|
*place = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -79,7 +79,6 @@ bool cmSetSourceFilesPropertiesCommand::InitialPass(
|
|||||||
}
|
}
|
||||||
else if(*j == "PROPERTIES")
|
else if(*j == "PROPERTIES")
|
||||||
{
|
{
|
||||||
doingFiles = false;
|
|
||||||
// now loop through the rest of the arguments, new style
|
// now loop through the rest of the arguments, new style
|
||||||
++j;
|
++j;
|
||||||
while (j != args.end())
|
while (j != args.end())
|
||||||
|
@ -109,7 +109,6 @@ void cmTarget::GenerateSourceFilesFromSourceLists( cmMakefile &mf)
|
|||||||
mf.GetSourceExtensions(),
|
mf.GetSourceExtensions(),
|
||||||
mf.GetHeaderExtensions());
|
mf.GetHeaderExtensions());
|
||||||
m_SourceFiles.push_back(mf.AddSource(file));
|
m_SourceFiles.push_back(mf.AddSource(file));
|
||||||
done = 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user