summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-05-29 13:34:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-05-29 13:34:06 (GMT)
commit0876c19dc89c0785ffe491aa095c231709cc5c7a (patch)
tree56144652460a3ebf1095858e10c9b21fd7cf494f /Source
parentcb9e995d0b7b6d1227ad30c6beb6627b3972812b (diff)
downloadCMake-0876c19dc89c0785ffe491aa095c231709cc5c7a.zip
CMake-0876c19dc89c0785ffe491aa095c231709cc5c7a.tar.gz
CMake-0876c19dc89c0785ffe491aa095c231709cc5c7a.tar.bz2
ENH: remove warnings from borland 6 compiler
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx3
-rw-r--r--Source/cmRegularExpression.cxx2
-rw-r--r--Source/cmSetSourceFilesPropertiesCommand.cxx1
-rw-r--r--Source/cmTarget.cxx1
4 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index fe18573..56baccb 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -197,10 +197,9 @@ std::string cmCTest::MakeXMLSafe(const std::string& str)
std::string cmCTest::MakeURLSafe(const std::string& str)
{
- std::string::size_type pos = 0;
cmOStringStream ost;
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];
if ( ( ch > 126 || ch < 32 ||
diff --git a/Source/cmRegularExpression.cxx b/Source/cmRegularExpression.cxx
index ce7b57a..35759c4 100644
--- a/Source/cmRegularExpression.cxx
+++ b/Source/cmRegularExpression.cxx
@@ -765,7 +765,7 @@ static void reginsert (char op, char* opnd) {
place = opnd; // Op node, where operand used to be.
*place++ = op;
*place++ = '\0';
- *place++ = '\0';
+ *place = '\0';
}
diff --git a/Source/cmSetSourceFilesPropertiesCommand.cxx b/Source/cmSetSourceFilesPropertiesCommand.cxx
index 2164e35..e57cfa6 100644
--- a/Source/cmSetSourceFilesPropertiesCommand.cxx
+++ b/Source/cmSetSourceFilesPropertiesCommand.cxx
@@ -79,7 +79,6 @@ bool cmSetSourceFilesPropertiesCommand::InitialPass(
}
else if(*j == "PROPERTIES")
{
- doingFiles = false;
// now loop through the rest of the arguments, new style
++j;
while (j != args.end())
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 2eecd36..9706ba8 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -109,7 +109,6 @@ void cmTarget::GenerateSourceFilesFromSourceLists( cmMakefile &mf)
mf.GetSourceExtensions(),
mf.GetHeaderExtensions());
m_SourceFiles.push_back(mf.AddSource(file));
- done = 1;
}
}