mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user