parent
af214e8212
commit
a57d22d2d9
|
@ -110,8 +110,7 @@ public:
|
|||
void uninitstringError(const Token *tok, const std::string &varname, bool strncpy_);
|
||||
void uninitdataError(const Token *tok, const std::string &varname);
|
||||
void uninitvarError(const Token *tok, const std::string &varname, ErrorPath errorPath);
|
||||
void uninitvarError(const Token *tok, const std::string &varname)
|
||||
{
|
||||
void uninitvarError(const Token *tok, const std::string &varname) {
|
||||
ErrorPath errorPath;
|
||||
uninitvarError(tok, varname, errorPath);
|
||||
}
|
||||
|
|
|
@ -4992,7 +4992,7 @@ static void valueFlowUninit(TokenList *tokenlist, SymbolDatabase * /*symbolDatab
|
|||
vardecl = vardecl->next();
|
||||
}
|
||||
// if (!stdtype && !pointer)
|
||||
// continue;
|
||||
// continue;
|
||||
if (!Token::Match(vardecl, "%var% ;"))
|
||||
continue;
|
||||
if (Token::Match(vardecl, "%varid% ; %varid% =", vardecl->varId()))
|
||||
|
|
Loading…
Reference in New Issue