diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-08-25 16:35:40 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 17:08:14 (GMT) |
commit | d7999e9b294f93f68b5ec9e3efd8017fad3f05d9 (patch) | |
tree | d705db14b00d2b6a22a8335aff2511ed95764489 /Source/cmake.cxx | |
parent | e141bc950a1970c6bc96fa5f55fd60c6aedbb2d0 (diff) | |
download | CMake-d7999e9b294f93f68b5ec9e3efd8017fad3f05d9.zip CMake-d7999e9b294f93f68b5ec9e3efd8017fad3f05d9.tar.gz CMake-d7999e9b294f93f68b5ec9e3efd8017fad3f05d9.tar.bz2 |
Rename strict-mode to warn-uninitialized
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 41f2775..f68ab3e 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -140,7 +140,7 @@ void cmNeedBackwardsCompatibility(const std::string& variable, cmake::cmake() { this->Trace = false; - this->StrictMode = false; + this->WarnUninitialized = false; this->FindUnused = false; this->DefaultToUsed = false; this->SuppressDevWarnings = false; @@ -616,10 +616,10 @@ void cmake::SetArgs(const std::vector<std::string>& args) std::cout << "Running with trace output on.\n"; this->SetTrace(true); } - else if(arg.find("--strict-mode",0) == 0) + else if(arg.find("--warn-uninitialized",0) == 0) { - std::cout << "Running in strict mode.\n"; - this->SetStrictMode(true); + std::cout << "Warn about uninitialized values.\n"; + this->SetWarnUninitialized(true); } else if(arg.find("--find-unused",0) == 0) { |