diagnostics: avoid useless caret stuttering

* src/scan-code.l: When reporting a missing ending ';', don't display
the guilty action twice.
This commit is contained in:
Akim Demaille
2013-01-15 17:02:03 +01:00
parent 6908c2e1f7
commit 184878b9ca

View 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, ';');
}