summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-07 17:03:11 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-07 17:03:11 (GMT)
commite82de6a5d5ed018373ec3d15949841d466527ef3 (patch)
treed56640b656375835a1a278e4cc2c8aac542eb09b /Source/cmake.cxx
parent19f5d128e8cce40e530a21ae88b9052810ab4394 (diff)
downloadCMake-e82de6a5d5ed018373ec3d15949841d466527ef3.zip
CMake-e82de6a5d5ed018373ec3d15949841d466527ef3.tar.gz
CMake-e82de6a5d5ed018373ec3d15949841d466527ef3.tar.bz2
COMP: Fix warnings
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 36e53bb..a1a7bfc 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2076,23 +2076,23 @@ void cmake::GenerateGraphViz(const char* fileName)
std::map<cmStdString, int>::iterator depIt;
for ( depIt = targetDeps.begin(); depIt != targetDeps.end(); ++ depIt )
{
- const char* tgtName = depIt->first.c_str();
- std::map<cmStdString, cmStdString>::iterator tarIt = targetNamesNodes.find(tgtName);
+ const char* newTargetName = depIt->first.c_str();
+ std::map<cmStdString, cmStdString>::iterator tarIt = targetNamesNodes.find(newTargetName);
if ( tarIt == targetNamesNodes.end() )
{
// We should not be here.
- std::cout << "Cannot find library: " << tgtName << " even though it was added in the previous pass" << std::endl;
+ std::cout << "Cannot find library: " << newTargetName << " even though it was added in the previous pass" << std::endl;
abort();
}
- str << " \"" << tarIt->second.c_str() << "\" [ label=\"" << tgtName << "\" shape=\"";
+ str << " \"" << tarIt->second.c_str() << "\" [ label=\"" << newTargetName << "\" shape=\"";
if ( depIt->second == 1 )
{
- std::map<cmStdString, cmTarget*>::iterator tarTypeIt= targetPtrs.find(tgtName);
+ std::map<cmStdString, cmTarget*>::iterator tarTypeIt= targetPtrs.find(newTargetName);
if ( tarTypeIt == targetPtrs.end() )
{
// We should not be here.
- std::cout << "Cannot find library: " << tgtName << " even though it was added in the previous pass" << std::endl;
+ std::cout << "Cannot find library: " << newTargetName << " even though it was added in the previous pass" << std::endl;
abort();
}
cmTarget* tg = tarTypeIt->second;
@@ -2128,8 +2128,8 @@ void cmake::GenerateGraphViz(const char* fileName)
cmTargets::iterator tit;
for ( tit = targets->begin(); tit != targets->end(); ++ tit )
{
- std::map<cmStdString, int>::iterator depIt = targetDeps.find(tit->first.c_str());
- if ( depIt == targetDeps.end() )
+ std::map<cmStdString, int>::iterator dependIt = targetDeps.find(tit->first.c_str());
+ if ( dependIt == targetDeps.end() )
{
continue;
}