COMP: Fix shadowed local warning by scoping the previous decl properly.

This commit is contained in:
Brad King 2007-09-13 09:14:46 -04:00
parent 68ee26aa35
commit 782c5c270f
1 changed files with 2 additions and 2 deletions

View File

@ -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()))
{