mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
parser: Get rid of global variable
fixes pvs-studio error 'V707 Giving short names to global variables is considered to be bad practice. It is suggested to rename 'i' variable. gorcunov@: Simply define it as local variable. Signed-off-by: Martin Lindhe <martin-commit@ubique.se> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
ec8b2081d3
commit
58f37c1736
@ -58,7 +58,6 @@ extern int32_t abs_offset; /* ABSOLUTE segment offset */
|
||||
|
||||
static int is_comma_next(void);
|
||||
|
||||
static int i;
|
||||
static struct tokenval tokval;
|
||||
|
||||
static int prefix_slot(int prefix)
|
||||
@ -436,6 +435,7 @@ insn *parse_line(int pass, char *buffer, insn *result, ldfunc ldef)
|
||||
int critical;
|
||||
bool first;
|
||||
bool recover;
|
||||
int i;
|
||||
|
||||
restart_parse:
|
||||
first = true;
|
||||
|
Loading…
Reference in New Issue
Block a user