diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 214c8bece..406062d29 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -93,7 +93,7 @@ cmMakefile::cmMakefile(): Internal(new Internals) this->Initialize(); this->PreOrder = false; this->WarnUnused = false; - this->DefaultToUsed = false; + this->DefaultToUsed = true; } cmMakefile::cmMakefile(const cmMakefile& mf): Internal(new Internals) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index e68f58d4f..cd9d10d04 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -142,7 +142,7 @@ cmake::cmake() this->Trace = false; this->WarnUninitialized = false; this->WarnUnused = false; - this->DefaultToUsed = false; + this->DefaultToUsed = true; this->SuppressDevWarnings = false; this->DoSuppressDevWarnings = false; this->DebugOutput = false; @@ -625,7 +625,6 @@ void cmake::SetArgs(const std::vector& args) { std::cout << "Finding unused command line variables.\n"; this->SetWarnUnused(true); - this->SetDefaultToUsed(true); } else if(arg.find("--warn-unused-all",0) == 0) {