Fixed compiler warning (#4136)
This commit is contained in:
parent
ce9f6bdb56
commit
88f9e9991d
|
@ -5997,7 +5997,7 @@ bool Tokenizer::simplifyKnownVariables()
|
||||||
|
|
||||||
else if (Token::Match(tok2, "strcpy|sprintf ( %var% , %str% ) ;")) {
|
else if (Token::Match(tok2, "strcpy|sprintf ( %var% , %str% ) ;")) {
|
||||||
const unsigned int varid(tok2->tokAt(2)->varId());
|
const unsigned int varid(tok2->tokAt(2)->varId());
|
||||||
std::string::size_type n = -1;
|
std::string::size_type n = std::string::npos;
|
||||||
if (varid == 0)
|
if (varid == 0)
|
||||||
continue;
|
continue;
|
||||||
const std::string structname;
|
const std::string structname;
|
||||||
|
|
Loading…
Reference in New Issue