mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
(nonterminals_reduce): Use warn_at rather than rolling our own.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* Grammar reduction for Bison.
|
/* Grammar reduction for Bison.
|
||||||
Copyright (C) 1988, 1989, 2000, 2001, 2002 Free Software Foundation, Inc.
|
Copyright (C) 1988, 1989, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
@@ -297,9 +297,7 @@ nonterminals_reduce (void)
|
|||||||
if (!bitset_test (V, i))
|
if (!bitset_test (V, i))
|
||||||
{
|
{
|
||||||
nontermmap[i] = n++;
|
nontermmap[i] = n++;
|
||||||
LOCATION_PRINT (stderr, symbols[i]->location);
|
warn_at (symbols[i]->location, _("useless nonterminal: %s"),
|
||||||
fprintf (stderr, ": %s: %s: %s\n",
|
|
||||||
_("warning"), _("useless nonterminal"),
|
|
||||||
symbols[i]->tag);
|
symbols[i]->tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user