]> git.saurik.com Git - bison.git/commitdiff
diagnostics: avoid useless caret stuttering
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 15 Jan 2013 16:02:03 +0000 (17:02 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 21 Jan 2013 15:15:05 +0000 (16:15 +0100)
* src/scan-code.l: When reporting a missing ending ';', don't display
the guilty action twice.

src/scan-code.l

index 7b1168d7394a05c0b4c84c574b73fdf5641c994e..562f03ccf20c5acd3866e50933708314706b917b 100644 (file)
@@ -229,7 +229,7 @@ ref      -?[0-9]+|{id}|"["{id}"]"|"$"
         complain_indent (loc, Wdeprecated, &indent,
                          _("a ';' might be needed at the end of action code"));
         indent += SUB_INDENT;
-        complain_indent (loc, Wdeprecated | silent, &indent,
+        complain_indent (loc, Wdeprecated | silent | no_caret, &indent,
                          _("future versions of Bison will not add the ';'"));
         obstack_1grow (&obstack_for_string, ';');
       }