(nonterminals_reduce): Use warn_at rather than rolling our own.

This commit is contained in:
Paul Eggert
2002-12-07 06:12:48 +00:00
parent 0aa32d51bb
commit d6ea8200af

View File

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