mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23: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,
|
||||
_("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, ';');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user