Reinstate error message.
This commit is contained in:
parent
42b85088c5
commit
8519a954a0
|
@ -584,7 +584,7 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
|
||||||
multicompare(p,tok->isName(),ismulticomp);
|
multicompare(p,tok->isName(),ismulticomp);
|
||||||
} else { // %varid%
|
} else { // %varid%
|
||||||
if (varid == 0) {
|
if (varid == 0) {
|
||||||
throw InternalError(tok, "Internal error. Tokentch called with varid 0. Please report this to Cppcheck developers");
|
throw InternalError(tok, "Internal error. Token::Match called with varid 0. Please report this to Cppcheck developers");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tok->varId() != varid)
|
if (tok->varId() != varid)
|
||||||
|
|
Loading…
Reference in New Issue