diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-22 16:42:26 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-22 16:46:15 (GMT) |
commit | 535253f38598d6dd46aca944a82cfe1684b2f07f (patch) | |
tree | b964ec1b7e316815b4dc90c7e1c9b2c7599e5403 /Source/cmMakefile.cxx | |
parent | cbb286c0b25e806d817ceb540312f34a7e1aa9a5 (diff) | |
download | CMake-535253f38598d6dd46aca944a82cfe1684b2f07f.zip CMake-535253f38598d6dd46aca944a82cfe1684b2f07f.tar.gz CMake-535253f38598d6dd46aca944a82cfe1684b2f07f.tar.bz2 |
Initialize the warning variables earlier
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 57c354f..86aca5a 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -56,6 +56,10 @@ cmMakefile::cmMakefile(): Internal(new Internals) this->Internal->VarInitStack.push(globalKeys); this->Internal->VarUsageStack.push(globalKeys); + // Initialize these first since AddDefaultDefinitions calls AddDefinition + this->WarnUnused = false; + this->CheckSystemVars = false; + // Setup the default include file regular expression (match everything). this->IncludeFileRegularExpression = "^.*$"; // Setup the default include complaint regular expression (match nothing). @@ -92,8 +96,6 @@ cmMakefile::cmMakefile(): Internal(new Internals) this->AddDefaultDefinitions(); this->Initialize(); this->PreOrder = false; - this->WarnUnused = false; - this->CheckSystemVars = false; } cmMakefile::cmMakefile(const cmMakefile& mf): Internal(new Internals) |