Fix missing case for usage of a variable

This commit is contained in:
Ben Boeckel 2010-09-14 17:10:22 -04:00
parent 980e048a7d
commit 056b44113f
1 changed files with 1 additions and 0 deletions

View File

@ -1649,6 +1649,7 @@ void cmMakefile::AddDefinition(const char* name, const char* value)
#endif #endif
this->Internal->VarStack.top().Set(name, value); this->Internal->VarStack.top().Set(name, value);
this->Internal->VarInitStack.top().insert(name);
if (this->Internal->VarUsageStack.size() > 1) if (this->Internal->VarUsageStack.size() > 1)
{ {
this->CheckForUnused("changing definition", name); this->CheckForUnused("changing definition", name);