mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
diagnostics: fix use of complain_indent
* src/symtab.c (symbol_class_set): Here. * tests/diagnostics.at, tests/input.at, tests/regression.at: Adjust expectations.
This commit is contained in:
@@ -464,7 +464,8 @@ symbol_class_set (symbol *sym, symbol_class class, location loc, bool declaring)
|
||||
if (s->status == declared)
|
||||
{
|
||||
unsigned i = 0;
|
||||
complain (&loc, Wother, _("symbol %s redeclared"), sym->tag);
|
||||
complain_indent (&loc, Wother, &i,
|
||||
_("symbol %s redeclared"), sym->tag);
|
||||
i += SUB_INDENT;
|
||||
complain_indent (&sym->location, Wother, &i,
|
||||
_("previous declaration"));
|
||||
|
||||
Reference in New Issue
Block a user