mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 18:53:04 +00:00
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:
@@ -229,7 +229,7 @@ ref -?[0-9]+|{id}|"["{id}"]"|"$"
|
|||||||
complain_indent (loc, Wdeprecated, &indent,
|
complain_indent (loc, Wdeprecated, &indent,
|
||||||
_("a ';' might be needed at the end of action code"));
|
_("a ';' might be needed at the end of action code"));
|
||||||
indent += SUB_INDENT;
|
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 ';'"));
|
_("future versions of Bison will not add the ';'"));
|
||||||
obstack_1grow (&obstack_for_string, ';');
|
obstack_1grow (&obstack_for_string, ';');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user