COMP: fix warning

This commit is contained in:
Ken Martin 2006-12-07 10:33:35 -05:00
parent 2305f7a94f
commit 5d9121971c
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,8 @@ void cmPropertyMap::SetProperty(const char *name, const char *value,
} }
cmSystemTools::Error(msg.c_str()); cmSystemTools::Error(msg.c_str());
} }
#else
(void)scope;
#endif #endif
cmProperty *prop = this->GetOrCreateProperty(name); cmProperty *prop = this->GetOrCreateProperty(name);

View File

@ -125,7 +125,6 @@ bool cmSetPropertiesCommand::InitialPass(
break; break;
case cmProperty::GLOBAL: case cmProperty::GLOBAL:
{ {
std::vector<std::string>::const_iterator j;
for(j= propertyPairs.begin(); j != propertyPairs.end(); ++j) for(j= propertyPairs.begin(); j != propertyPairs.end(); ++j)
{ {
this->Makefile->GetCMakeInstance()->SetProperty(j->c_str(), this->Makefile->GetCMakeInstance()->SetProperty(j->c_str(),