summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2013-01-15 17:02:03 +0100
committerAkim Demaille <akim@lrde.epita.fr>2013-01-21 16:15:05 +0100
commit184878b9ca649a0a7f61353cf9a75de634d1888f (patch)
treef0f597775a2a816fc7bdfad093ae20483d58e4c0
parent6908c2e1f7601e72c19e1f8c16eea1116e8b6708 (diff)
downloadbison-184878b9ca649a0a7f61353cf9a75de634d1888f.tar.gz
diagnostics: avoid useless caret stuttering
* src/scan-code.l: When reporting a missing ending ';', don't display the guilty action twice.
-rw-r--r--src/scan-code.l2
1 files changed, 1 insertions, 1 deletions
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, ';');
}