0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-07-24 10:25:42 -04:00

BR3104852: only warn once for repeated prefixes

This commit is contained in:
Victor van den Elzen 2010-11-07 23:47:13 +01:00
parent b3cee5a57a
commit d55a158cec

View File

@ -292,7 +292,7 @@ restart_parse:
int slot = prefix_slot(tokval.t_integer); int slot = prefix_slot(tokval.t_integer);
if (result->prefixes[slot]) { if (result->prefixes[slot]) {
if (result->prefixes[slot] == tokval.t_integer) if (result->prefixes[slot] == tokval.t_integer)
nasm_error(ERR_WARNING, nasm_error(ERR_WARNING | ERR_PASS1,
"instruction has redundant prefixes"); "instruction has redundant prefixes");
else else
nasm_error(ERR_NONFATAL, nasm_error(ERR_NONFATAL,