diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-12-03 17:52:36 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-12-03 17:52:36 (GMT) |
commit | 3c3b98ddd384214d191c1b061f8c7eba6845810d (patch) | |
tree | ef1e34f794ef327e7b0b9abec28132f08d1735d6 /Source/cmMakefile.cxx | |
parent | cf8b15a5c1eb32f756cf76f06fd18c23241dd103 (diff) | |
download | CMake-3c3b98ddd384214d191c1b061f8c7eba6845810d.zip CMake-3c3b98ddd384214d191c1b061f8c7eba6845810d.tar.gz CMake-3c3b98ddd384214d191c1b061f8c7eba6845810d.tar.bz2 |
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.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } //---------------------------------------------------------------------------- |