mirror of https://github.com/x64dbg/btparser
fixed Coverity errors
This commit is contained in:
parent
46b59b43ce
commit
90eed9913a
|
@ -96,8 +96,6 @@ bool Lexer::Test(const std::function<void(const std::string & line)> & lexEnum,
|
|||
lexEnum(toks);
|
||||
}
|
||||
while(tok != tok_eof && tok != tok_error);
|
||||
if(tok != tok_error && tok != tok_eof)
|
||||
tok = reportError("lexer did not finish at the end of the file");
|
||||
for(const auto & warning : mWarnings)
|
||||
if(output)
|
||||
lexEnum("\nwarning: " + warning);
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
|
||||
struct TokenState
|
||||
{
|
||||
Token Token;
|
||||
Token Token = tok_eof;
|
||||
std::string IdentifierStr; //tok_identifier
|
||||
uint64_t NumberVal = 0; //tok_number
|
||||
std::string StringLit; //tok_stringlit
|
||||
|
|
Loading…
Reference in New Issue