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:
Akim Demaille
2019-09-13 21:04:49 +02:00
parent 19da501e06
commit 32dff87c1d
4 changed files with 12 additions and 11 deletions

View File

@@ -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"));