summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-09-13 13:14:46 (GMT)
committerBrad King <brad.king@kitware.com>2007-09-13 13:14:46 (GMT)
commit782c5c270f4aee955c0868d23e677ba2015d3efd (patch)
treef4954009c30c0f517aea377084ae60d61e9e15e5
parent68ee26aa35451c9b7ac8a2c5ee295730fbd2140d (diff)
downloadCMake-782c5c270f4aee955c0868d23e677ba2015d3efd.zip
CMake-782c5c270f4aee955c0868d23e677ba2015d3efd.tar.gz
CMake-782c5c270f4aee955c0868d23e677ba2015d3efd.tar.bz2
COMP: Fix shadowed local warning by scoping the previous decl properly.
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 6b019e9..ee630bc 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -1489,11 +1489,11 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
std::string dirs;
std::vector<std::string> includes;
this->CurrentLocalGenerator->GetIncludeDirectories(includes);
- std::vector<std::string>::iterator i = includes.begin();
std::string fdirs;
std::set<cmStdString> emitted;
emitted.insert("/System/Library/Frameworks");
- for(;i != includes.end(); ++i)
+ for(std::vector<std::string>::iterator i = includes.begin();
+ i != includes.end(); ++i)
{
if(cmSystemTools::IsPathToFramework(i->c_str()))
{