From d6ea8200af27933cac4ca91df7cf2693154cd2b9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 7 Dec 2002 06:12:48 +0000 Subject: [PATCH 1/1] (nonterminals_reduce): Use warn_at rather than rolling our own. --- src/reduce.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/reduce.c b/src/reduce.c index 699f45a4..e3ed6f61 100644 --- a/src/reduce.c +++ b/src/reduce.c @@ -1,5 +1,5 @@ /* 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. @@ -297,9 +297,7 @@ nonterminals_reduce (void) 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); } -- 2.47.2