COMP: Fix shadowed local variable warning.
This commit is contained in:
parent
f0cee3fe4c
commit
a0715048da
@ -159,12 +159,14 @@ bool cmAddCustomTargetCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Enforce name uniqueness.
|
// Enforce name uniqueness.
|
||||||
|
{
|
||||||
std::string msg;
|
std::string msg;
|
||||||
if(!this->Makefile->EnforceUniqueName(args[0], msg))
|
if(!this->Makefile->EnforceUniqueName(args[0], msg))
|
||||||
{
|
{
|
||||||
this->SetError(msg.c_str());
|
this->SetError(msg.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Add the utility target to the makefile.
|
// Add the utility target to the makefile.
|
||||||
bool escapeOldStyle = !verbatim;
|
bool escapeOldStyle = !verbatim;
|
||||||
|
@ -101,12 +101,14 @@ bool cmAddExecutableCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Enforce name uniqueness.
|
// Enforce name uniqueness.
|
||||||
|
{
|
||||||
std::string msg;
|
std::string msg;
|
||||||
if(!this->Makefile->EnforceUniqueName(exename, msg))
|
if(!this->Makefile->EnforceUniqueName(exename, msg))
|
||||||
{
|
{
|
||||||
this->SetError(msg.c_str());
|
this->SetError(msg.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (s == args.end())
|
if (s == args.end())
|
||||||
{
|
{
|
||||||
|
@ -128,12 +128,14 @@ bool cmAddLibraryCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Enforce name uniqueness.
|
// Enforce name uniqueness.
|
||||||
|
{
|
||||||
std::string msg;
|
std::string msg;
|
||||||
if(!this->Makefile->EnforceUniqueName(libName, msg))
|
if(!this->Makefile->EnforceUniqueName(libName, msg))
|
||||||
{
|
{
|
||||||
this->SetError(msg.c_str());
|
this->SetError(msg.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (s == args.end())
|
if (s == args.end())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user