COMP: fix some warnings
This commit is contained in:
parent
bd0447be7d
commit
d7db2d086c
|
@ -48,6 +48,7 @@ bool cmAddCustomTargetCommand
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
case cmPolicies::REQUIRED_IF_USED:
|
case cmPolicies::REQUIRED_IF_USED:
|
||||||
|
case cmPolicies::REQUIRED_ALWAYS:
|
||||||
this->SetError(
|
this->SetError(
|
||||||
this->Makefile->GetPolicies()->GetRequiredPolicyError
|
this->Makefile->GetPolicies()->GetRequiredPolicyError
|
||||||
(cmPolicies::CMP_0001).c_str());
|
(cmPolicies::CMP_0001).c_str());
|
||||||
|
|
|
@ -3149,6 +3149,7 @@ bool cmMakefile::EnforceUniqueName(std::string const& name, std::string& msg,
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
return true;
|
return true;
|
||||||
case cmPolicies::REQUIRED_IF_USED:
|
case cmPolicies::REQUIRED_IF_USED:
|
||||||
|
case cmPolicies::REQUIRED_ALWAYS:
|
||||||
msg = this->GetPolicies()->
|
msg = this->GetPolicies()->
|
||||||
GetRequiredPolicyError(cmPolicies::CMP_0002);
|
GetRequiredPolicyError(cmPolicies::CMP_0002);
|
||||||
return false;
|
return false;
|
||||||
|
@ -3235,7 +3236,7 @@ bool cmMakefile::EnforceUniqueName(std::string const& name, std::string& msg,
|
||||||
cmPolicies::PolicyStatus cmMakefile
|
cmPolicies::PolicyStatus cmMakefile
|
||||||
::GetPolicyStatus(cmPolicies::PolicyID id)
|
::GetPolicyStatus(cmPolicies::PolicyID id)
|
||||||
{
|
{
|
||||||
cmPolicies::PolicyStatus status;
|
cmPolicies::PolicyStatus status = cmPolicies::REQUIRED_IF_USED;
|
||||||
PolicyMap::iterator mappos;
|
PolicyMap::iterator mappos;
|
||||||
unsigned int vecpos;
|
unsigned int vecpos;
|
||||||
bool done = false;
|
bool done = false;
|
||||||
|
|
Loading…
Reference in New Issue