]> git.saurik.com Git - bison.git/commitdiff
(nonterminals_reduce): Use warn_at rather than rolling our own.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Dec 2002 06:12:48 +0000 (06:12 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Dec 2002 06:12:48 +0000 (06:12 +0000)
src/reduce.c

index 699f45a4b34901953e77b084d5d15d504953b2f6..e3ed6f6153c200649821fb4f976878b289616b7e 100644 (file)
@@ -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))
       {
        nontermmap[i] = n++;
     if (!bitset_test (V, i))
       {
        nontermmap[i] = n++;
-       LOCATION_PRINT (stderr, symbols[i]->location);
-       fprintf (stderr, ": %s: %s: %s\n",
-                _("warning"), _("useless nonterminal"),
+       warn_at (symbols[i]->location, _("useless nonterminal: %s"),
                 symbols[i]->tag);
       }
 
                 symbols[i]->tag);
       }