summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor van den Elzen <victor.vde@gmail.com>2010-11-07 23:47:13 +0100
committerCyrill Gorcunov <gorcunov@gmail.com>2010-11-21 19:41:01 +0300
commit0d0f8ec4187dc4c54bfe1e08fb713c2b8fe7ae3f (patch)
tree6de8b369f8ccea36e31d7139b4ce2a9baa531de1
parent41f1f2badc86bfb3bdb7ef11697ed01d0c476207 (diff)
downloadnasm-0d0f8ec4187dc4c54bfe1e08fb713c2b8fe7ae3f.tar.gz
BR3104852: only warn once for repeated prefixes
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index ea36e86c..f3c60b29 100644
--- a/parser.c
+++ b/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,