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:
parent
cf8b15a5c1
commit
3c3b98ddd3
|
@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue