portability: beware of GCC 4.6

src/reader.c: In function 'grammar_start_symbols_add':
    src/reader.c:67:24: error: declaration of 'dup' shadows a global declaration [-Werror=shadow]

* src/reader.c (grammar_start_symbols_add): Rename dup as dupl.
This commit is contained in:
Akim Demaille
2020-12-03 19:46:20 +01:00
parent 24233748ec
commit 0e78a9028e

View File

@@ -64,10 +64,10 @@ grammar_start_symbols_add (symbol_list *syms)
if (first)
{
duplicate_directive ("%start", first->sym_loc, l->sym_loc);
symbol_list *dup = l;
symbol_list *dupl = l;
l = l->next;
dup->next = NULL;
symbol_list_free (dup);
dupl->next = NULL;
symbol_list_free (dupl);
}
else
{