X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/dbbb64f09180b8749e3a91d3559e13b933cd15c8..ea13bea8ab1c8da513e065f8ba21216616203a4a:/src/gram.c diff --git a/src/gram.c b/src/gram.c index e28b64da..74ead640 100644 --- a/src/gram.c +++ b/src/gram.c @@ -1,7 +1,7 @@ /* Allocate input grammar variables for Bison. - Copyright (C) 1984, 1986, 1989, 2001, 2002, 2003, 2005, 2006, - 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 1984, 1986, 1989, 2001, 2002, 2003, 2005, 2006, 2007, + 2008, 2009, 2010 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -23,11 +23,12 @@ #include +#include "complain.h" #include "gram.h" +#include "print-xml.h" #include "reader.h" #include "reduce.h" #include "symtab.h" -#include "print-xml.h" /* Comments for these variables are in gram.h. */ @@ -308,9 +309,9 @@ grammar_rules_useless_report (const char *message) for (r = 0; r < nrules ; ++r) if (!rules[r].useful) { - location_print (stderr, rules[r].location); - fprintf (stderr, ": %s: %s: ", _("warning"), message); - rule_print (&rules[r], stderr); + warn_at (rules[r].location, "%s: ", message); + rule_print (&rules[r], stderr); + fflush (stderr); } }