From 3c3b98ddd384214d191c1b061f8c7eba6845810d Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 3 Dec 2010 12:52:36 -0500 Subject: 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. --- Source/cmMakefile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index feeee2f..ed435da 100644 --- a/Source/cmMakefile.cxx +++ b/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(); } //---------------------------------------------------------------------------- -- cgit v0.12