Tokenizer::simplifyKnownVariables: suppress debug warnings about pointer aliases. Temporary solution that limits the amount of debug warnings somewhat.
This commit is contained in:
parent
9d88e17c39
commit
bb745da5f9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue