Tokenizer::simplifyKnownVariables: suppress debug warnings about pointer aliases. Temporary solution that limits the amount of debug warnings somewhat.

This commit is contained in:
Daniel Marjamäki 2010-11-21 13:50:57 +01:00
parent 9d88e17c39
commit bb745da5f9
1 changed files with 5 additions and 0 deletions

View File

@ -6114,6 +6114,11 @@ bool Tokenizer::simplifyKnownVariables()
// There might be lots of false negatives.
if (_settings && _settings->debugwarnings)
{
// FIXME: Fix all the debug warnings for values and then
// remove this bailout
if (pointeralias)
break;
// suppress debug-warning when calling member function
if (Token::Match(tok3->next(), ". %var% ("))
break;