Default to marking things as used

If we don't then:

    cmake --warn-unused --warn-unused-all

acts differently than:

    cmake --warn-unused-all --warn-unused
This commit is contained in:
Ben Boeckel 2010-08-25 12:42:03 -04:00
parent 4ff03402fc
commit 636e6c4ef7
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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<std::string>& args)
{
std::cout << "Finding unused command line variables.\n";
this->SetWarnUnused(true);
this->SetDefaultToUsed(true);
}
else if(arg.find("--warn-unused-all",0) == 0)
{