From e82de6a5d5ed018373ec3d15949841d466527ef3 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 7 Mar 2006 12:03:11 -0500 Subject: COMP: Fix warnings --- Source/cmake.cxx | 16 ++++++++-------- 1 file 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::iterator depIt; for ( depIt = targetDeps.begin(); depIt != targetDeps.end(); ++ depIt ) { - const char* tgtName = depIt->first.c_str(); - std::map::iterator tarIt = targetNamesNodes.find(tgtName); + const char* newTargetName = depIt->first.c_str(); + std::map::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::iterator tarTypeIt= targetPtrs.find(tgtName); + std::map::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::iterator depIt = targetDeps.find(tit->first.c_str()); - if ( depIt == targetDeps.end() ) + std::map::iterator dependIt = targetDeps.find(tit->first.c_str()); + if ( dependIt == targetDeps.end() ) { continue; } -- cgit v0.12