Initialize the class before setting warn flags

Since Initialize sets variables that we don't want to warn about, don't
leak the original class' settings.
This commit is contained in:
Ben Boeckel 2010-12-03 12:52:36 -05:00
parent cf8b15a5c1
commit 3c3b98ddd3
1 changed files with 1 additions and 1 deletions

View File

@ -141,9 +141,9 @@ cmMakefile::cmMakefile(const cmMakefile& mf): Internal(new Internals)
this->Properties = mf.Properties; this->Properties = mf.Properties;
this->PreOrder = mf.PreOrder; this->PreOrder = mf.PreOrder;
this->WarnUnused = mf.WarnUnused; this->WarnUnused = mf.WarnUnused;
this->Initialize();
this->CheckSystemVars = mf.CheckSystemVars; this->CheckSystemVars = mf.CheckSystemVars;
this->ListFileStack = mf.ListFileStack; this->ListFileStack = mf.ListFileStack;
this->Initialize();
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------