Various fixes detected using PVS-Studio static analyzer.
- Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
This commit is contained in:
parent
0f8c6dd382
commit
f50488a361
32 changed files with 41 additions and 39 deletions
|
|
@ -1414,7 +1414,7 @@ Error VariantParser::parse_value(Token& token,Variant &value,Stream *p_stream,in
|
|||
return OK;
|
||||
} else if (id=="img") { // compatibility with godot.cfg
|
||||
|
||||
Token token;
|
||||
Token token; // FIXME: no need for this declaration? the first argument in line 509 is a Token& token.
|
||||
get_token(p_stream,token,line,r_err_str);
|
||||
if (token.type!=TK_PARENTHESIS_OPEN) {
|
||||
r_err_str="Expected '(' in old-style godot.cfg construct";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue