[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/5] diagnostics: avoid useless caret stuttering
From: |
Akim Demaille |
Subject: |
[PATCH 1/5] diagnostics: avoid useless caret stuttering |
Date: |
Mon, 21 Jan 2013 16:36:51 +0100 |
* 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 7b1168d..562f03c 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, ';');
}
--
1.8.1.1