summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2008-03-01 20:44:17 (GMT)
committerKen Martin <ken.martin@kitware.com>2008-03-01 20:44:17 (GMT)
commitd7db2d086cf9d850c0b0644496ad59a2700ae3b5 (patch)
tree2bdd0b8f0f79a3542d21631dc468c522c79f2efa /Source/cmMakefile.cxx
parentbd0447be7d65bb03a8b489755c7a75ece4aa9cbb (diff)
downloadCMake-d7db2d086cf9d850c0b0644496ad59a2700ae3b5.zip
CMake-d7db2d086cf9d850c0b0644496ad59a2700ae3b5.tar.gz
CMake-d7db2d086cf9d850c0b0644496ad59a2700ae3b5.tar.bz2
COMP: fix some warnings
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 18348c1..f86fbb8 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -3149,6 +3149,7 @@ bool cmMakefile::EnforceUniqueName(std::string const& name, std::string& msg,
case cmPolicies::OLD:
return true;
case cmPolicies::REQUIRED_IF_USED:
+ case cmPolicies::REQUIRED_ALWAYS:
msg = this->GetPolicies()->
GetRequiredPolicyError(cmPolicies::CMP_0002);
return false;
@@ -3235,7 +3236,7 @@ bool cmMakefile::EnforceUniqueName(std::string const& name, std::string& msg,
cmPolicies::PolicyStatus cmMakefile
::GetPolicyStatus(cmPolicies::PolicyID id)
{
- cmPolicies::PolicyStatus status;
+ cmPolicies::PolicyStatus status = cmPolicies::REQUIRED_IF_USED;
PolicyMap::iterator mappos;
unsigned int vecpos;
bool done = false;