mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
BR3104852: only warn once for repeated prefixes
This commit is contained in:
parent
41f1f2badc
commit
0d0f8ec418
2
parser.c
2
parser.c
@ -292,7 +292,7 @@ restart_parse:
|
||||
int slot = prefix_slot(tokval.t_integer);
|
||||
if (result->prefixes[slot]) {
|
||||
if (result->prefixes[slot] == tokval.t_integer)
|
||||
nasm_error(ERR_WARNING,
|
||||
nasm_error(ERR_WARNING | ERR_PASS1,
|
||||
"instruction has redundant prefixes");
|
||||
else
|
||||
nasm_error(ERR_NONFATAL,
|
||||
|
Loading…
Reference in New Issue
Block a user