From: Akim Demaille Date: Tue, 15 Jan 2013 16:02:03 +0000 (+0100) Subject: diagnostics: avoid useless caret stuttering X-Git-Tag: v2.7.90~167 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/184878b9ca649a0a7f61353cf9a75de634d1888f diagnostics: avoid useless caret stuttering * src/scan-code.l: When reporting a missing ending ';', don't display the guilty action twice. --- 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, ';'); }