Browse Source

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.
Ben Boeckel 15 years ago
parent
commit
3c3b98ddd3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmMakefile.cxx

+ 1 - 1
Source/cmMakefile.cxx

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