COMP: Remove shadow variable warning
This commit is contained in:
parent
081625c610
commit
2804a0d7db
@ -113,9 +113,10 @@ cmStdString cmFindFileCommand::FindHeaderInFrameworks(
|
|||||||
const char* defineVar,
|
const char* defineVar,
|
||||||
const char* file)
|
const char* file)
|
||||||
{
|
{
|
||||||
|
(void)defineVar;
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
(void)path;
|
(void)path;
|
||||||
(void)defineVar;
|
|
||||||
(void)file;
|
(void)file;
|
||||||
return cmStdString("");
|
return cmStdString("");
|
||||||
#else
|
#else
|
||||||
@ -150,11 +151,11 @@ cmStdString cmFindFileCommand::FindHeaderInFrameworks(
|
|||||||
fpath += "/";
|
fpath += "/";
|
||||||
fpath += frameWorkName;
|
fpath += frameWorkName;
|
||||||
fpath += ".framework";
|
fpath += ".framework";
|
||||||
std::string path = fpath;
|
std::string intPath = fpath;
|
||||||
path += "/Headers/";
|
intPath += "/Headers/";
|
||||||
path += fileName;
|
intPath += fileName;
|
||||||
std::cerr << "try " << path << "\n";
|
std::cerr << "try " << intPath << "\n";
|
||||||
if(cmSystemTools::FileExists(path.c_str()))
|
if(cmSystemTools::FileExists(intPath.c_str()))
|
||||||
{
|
{
|
||||||
return fpath;
|
return fpath;
|
||||||
}
|
}
|
||||||
|
@ -1198,12 +1198,12 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
|
|||||||
std::vector<std::string>& frameworks = target.GetFrameworks();
|
std::vector<std::string>& frameworks = target.GetFrameworks();
|
||||||
if(frameworks.size())
|
if(frameworks.size())
|
||||||
{
|
{
|
||||||
for(std::vector<std::string>::iterator i = frameworks.begin();
|
for(std::vector<std::string>::iterator fmIt = frameworks.begin();
|
||||||
i != frameworks.end(); ++i)
|
fmIt != frameworks.end(); ++fmIt)
|
||||||
{
|
{
|
||||||
if(emitted.insert(*i).second)
|
if(emitted.insert(*fmIt).second)
|
||||||
{
|
{
|
||||||
fdirs += this->XCodeEscapePath(i->c_str());
|
fdirs += this->XCodeEscapePath(fmIt->c_str());
|
||||||
fdirs += " ";
|
fdirs += " ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user