diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-08-25 16:42:03 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 17:08:15 (GMT) |
commit | 636e6c4ef7e79113802714dbc7ade77d4f04e809 (patch) | |
tree | 651a2c203835ef9fcb58cbeec1f421c9b822cced /Source/cmake.cxx | |
parent | 4ff03402fc137bf5624d4a71c1ad3b177e5ceb53 (diff) | |
download | CMake-636e6c4ef7e79113802714dbc7ade77d4f04e809.zip CMake-636e6c4ef7e79113802714dbc7ade77d4f04e809.tar.gz CMake-636e6c4ef7e79113802714dbc7ade77d4f04e809.tar.bz2 |
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
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index e68f58d..cd9d10d 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<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) { |