X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/bcf07cb7070fab57727b274486dc7a331ff8ac2d..575619af5e1f61a5f78fb3910bee424ead5fe5a6:/src/reduce.c diff --git a/src/reduce.c b/src/reduce.c index 1f8fc347..7a30e555 100644 --- a/src/reduce.c +++ b/src/reduce.c @@ -1,7 +1,7 @@ /* Grammar reduction for Bison. - Copyright (C) 1988, 1989, 2000, 2001, 2002, 2003, 2005, 2006, - 2007 Free Software Foundation, Inc. + Copyright (C) 1988-1989, 2000-2003, 2005-2011 Free Software + Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -383,23 +383,15 @@ static void reduce_print (void) { if (nuseless_nonterminals > 0) - { - fprintf (stderr, "%s: %s: ", grammar_file, _("warning")); - fprintf (stderr, ngettext ("%d nonterminal useless in grammar", - "%d nonterminals useless in grammar", - nuseless_nonterminals), - nuseless_nonterminals); - fprintf (stderr, "\n"); - } + warn (ngettext ("%d nonterminal useless in grammar", + "%d nonterminals useless in grammar", + nuseless_nonterminals), + nuseless_nonterminals); if (nuseless_productions > 0) - { - fprintf (stderr, "%s: %s: ", grammar_file, _("warning")); - fprintf (stderr, ngettext ("%d rule useless in grammar", - "%d rules useless in grammar", - nuseless_productions), - nuseless_productions); - fprintf (stderr, "\n"); - } + warn (ngettext ("%d rule useless in grammar", + "%d rules useless in grammar", + nuseless_productions), + nuseless_productions); } void