summaryrefslogtreecommitdiff
path: root/Source/cmCommandArgumentParserHelper.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-08-25 12:35:40 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-01 13:08:14 -0400
commitd7999e9b294f93f68b5ec9e3efd8017fad3f05d9 (patch)
treed705db14b00d2b6a22a8335aff2511ed95764489 /Source/cmCommandArgumentParserHelper.cxx
parente141bc950a1970c6bc96fa5f55fd60c6aedbb2d0 (diff)
downloadcmake-d7999e9b294f93f68b5ec9e3efd8017fad3f05d9.tar.gz
Rename strict-mode to warn-uninitialized
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.cxx')
-rw-r--r--Source/cmCommandArgumentParserHelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx
index d955ff7e08..1460e5ddda 100644
--- a/Source/cmCommandArgumentParserHelper.cxx
+++ b/Source/cmCommandArgumentParserHelper.cxx
@@ -20,7 +20,7 @@ int cmCommandArgument_yyparse( yyscan_t yyscanner );
//
cmCommandArgumentParserHelper::cmCommandArgumentParserHelper()
{
- this->StrictMode = false;
+ this->WarnUninitialized = false;
this->FileLine = -1;
this->FileName = 0;
this->RemoveEmpty = true;
@@ -127,7 +127,7 @@ char* cmCommandArgumentParserHelper::ExpandVariable(const char* var)
// check to see if we need to print a warning
// if strict mode is on and the variable has
// not been "cleared"/initialized with a set(foo ) call
- if(this->StrictMode && !this->Makefile->VariableInitialized(var))
+ if(this->WarnUninitialized && !this->Makefile->VariableInitialized(var))
{
cmOStringStream msg;
msg << this->FileName << ":" << this->FileLine << ":" <<
@@ -330,7 +330,7 @@ void cmCommandArgumentParserHelper::Error(const char* str)
void cmCommandArgumentParserHelper::SetMakefile(const cmMakefile* mf)
{
this->Makefile = mf;
- this->StrictMode = mf->GetCMakeInstance()->GetStrictMode();
+ this->WarnUninitialized = mf->GetCMakeInstance()->GetWarnUninitialized();
}
void cmCommandArgumentParserHelper::SetResult(const char* value)