Symbol database: Fixed debug warnings for true/false. true/false doesn't have varId.

This commit is contained in:
Daniel Marjamäki 2011-02-26 23:58:02 -08:00
parent 2b03bfaf38
commit e3f779a41c
1 changed files with 1 additions and 1 deletions

View File

@ -1419,7 +1419,7 @@ void Scope::getVariableList()
// If the vartok was set in the if-blocks above, create a entry for this variable.. // If the vartok was set in the if-blocks above, create a entry for this variable..
if (vartok && vartok->str() != "operator") if (vartok && vartok->str() != "operator")
{ {
if (vartok->varId() == 0 && check->_settings->debugwarnings) if (vartok->varId() == 0 && !vartok->isBoolean() && check->_settings->debugwarnings)
{ {
std::list<ErrorLogger::ErrorMessage::FileLocation> locationList; std::list<ErrorLogger::ErrorMessage::FileLocation> locationList;
ErrorLogger::ErrorMessage::FileLocation loc; ErrorLogger::ErrorMessage::FileLocation loc;