From 184878b9ca649a0a7f61353cf9a75de634d1888f Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 15 Jan 2013 17:02:03 +0100 Subject: [PATCH] diagnostics: avoid useless caret stuttering * src/scan-code.l: When reporting a missing ending ';', don't display the guilty action twice. --- src/scan-code.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scan-code.l b/src/scan-code.l index 7b1168d7..562f03cc 100644 --- a/src/scan-code.l +++ b/src/scan-code.l @@ -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, ';'); } -- 2.47.2