diff options
author | Brad King <brad.king@kitware.com> | 2007-09-13 13:14:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-09-13 13:14:46 (GMT) |
commit | 782c5c270f4aee955c0868d23e677ba2015d3efd (patch) | |
tree | f4954009c30c0f517aea377084ae60d61e9e15e5 | |
parent | 68ee26aa35451c9b7ac8a2c5ee295730fbd2140d (diff) | |
download | CMake-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.cxx | 4 |
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())) { |