diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-08-25 16:36:21 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 17:08:14 (GMT) |
commit | 4ff03402fc137bf5624d4a71c1ad3b177e5ceb53 (patch) | |
tree | 30fc83fbf66af3220e2b13301cea6390a11d4c50 /Source/cmake.cxx | |
parent | d7999e9b294f93f68b5ec9e3efd8017fad3f05d9 (diff) | |
download | CMake-4ff03402fc137bf5624d4a71c1ad3b177e5ceb53.zip CMake-4ff03402fc137bf5624d4a71c1ad3b177e5ceb53.tar.gz CMake-4ff03402fc137bf5624d4a71c1ad3b177e5ceb53.tar.bz2 |
Rename find-unused to warn-unused
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index f68ab3e..e68f58d 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -141,7 +141,7 @@ cmake::cmake() { this->Trace = false; this->WarnUninitialized = false; - this->FindUnused = false; + this->WarnUnused = false; this->DefaultToUsed = false; this->SuppressDevWarnings = false; this->DoSuppressDevWarnings = false; @@ -621,16 +621,16 @@ void cmake::SetArgs(const std::vector<std::string>& args) std::cout << "Warn about uninitialized values.\n"; this->SetWarnUninitialized(true); } - else if(arg.find("--find-unused",0) == 0) + else if(arg.find("--warn-unused",0) == 0) { std::cout << "Finding unused command line variables.\n"; - this->SetFindUnused(true); + this->SetWarnUnused(true); this->SetDefaultToUsed(true); } - else if(arg.find("--find-unused-all",0) == 0) + else if(arg.find("--warn-unused-all",0) == 0) { std::cout << "Finding unused variables.\n"; - this->SetFindUnused(true); + this->SetWarnUnused(true); this->SetDefaultToUsed(false); } else if(arg.find("-G",0) == 0) |