From 1363bff83a8e525814bbcfd1e90173d392ecc52b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 16 May 2015 16:39:36 +0200 Subject: [PATCH] cmMakefile: Remove duplicate variable initialization. --- Source/cmMakefile.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 1a192f5f0..a95f4b836 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -152,8 +152,8 @@ cmMakefile::cmMakefile(cmLocalGenerator* localGenerator) this->Internal->IsSourceFileTryCompile = false; // Initialize these first since AddDefaultDefinitions calls AddDefinition - this->WarnUnused = false; - this->CheckSystemVars = false; + this->WarnUnused = this->GetCMakeInstance()->GetWarnUnused(); + this->CheckSystemVars = this->GetCMakeInstance()->GetCheckSystemVars(); this->GeneratingBuildSystem = false; this->SuppressWatches = false; @@ -223,8 +223,6 @@ cmMakefile::cmMakefile(cmLocalGenerator* localGenerator) #endif this->Properties.SetCMakeInstance(this->GetCMakeInstance()); - this->WarnUnused = this->GetCMakeInstance()->GetWarnUnused(); - this->CheckSystemVars = this->GetCMakeInstance()->GetCheckSystemVars(); { const char* dir = this->GetCMakeInstance()->GetHomeDirectory();