BR3104852: only warn once for repeated prefixes
authorVictor van den Elzen <victor.vde@gmail.com>
Sun, 7 Nov 2010 22:47:13 +0000 (23:47 +0100)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sun, 21 Nov 2010 16:41:01 +0000 (19:41 +0300)
parser.c

index ea36e86..f3c60b2 100644 (file)
--- 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,