ENH: warning fix

This commit is contained in:
Ken Martin 2009-06-12 11:10:26 -04:00
parent e02d66e89e
commit f50cf4f60d

View File

@ -83,10 +83,10 @@ IsFunctionBlocked(const cmListFileFunction& lff,
mf.ExpandArguments(this->Functions[c].Arguments, mf.ExpandArguments(this->Functions[c].Arguments,
expandedArguments); expandedArguments);
cmake::MessageType status; cmake::MessageType messType;
bool isTrue = bool isTrue =
cmIfCommand::IsTrue(expandedArguments, errorString, cmIfCommand::IsTrue(expandedArguments, errorString,
&mf, status); &mf, messType);
if (errorString.size()) if (errorString.size())
{ {
@ -102,8 +102,8 @@ IsFunctionBlocked(const cmListFileFunction& lff,
err += "("; err += "(";
err += errorString; err += errorString;
err += ")."; err += ").";
mf.IssueMessage(status, err); mf.IssueMessage(messType, err);
if (status == cmake::FATAL_ERROR) if (messType == cmake::FATAL_ERROR)
{ {
cmSystemTools::SetFatalErrorOccured(); cmSystemTools::SetFatalErrorOccured();
return true; return true;