X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f3ead217b8636f623399e66bd937b1c51774d4af..70b7c357476ed3525ddb5d2739e70690cfebb207:/src/reader.c diff --git a/src/reader.c b/src/reader.c index fb17b018..15392b50 100644 --- a/src/reader.c +++ b/src/reader.c @@ -1,7 +1,7 @@ /* Input parser for Bison Copyright (C) 1984, 1986, 1989, 1992, 1998, 2000-2003, 2005-2007, - 2009-2012 Free Software Foundation, Inc. + 2009-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -326,9 +326,9 @@ grammar_rule_check (const symbol_list *r) { warnings warn_flag = midrule_warning ? Wmidrule_values : Wother; if (n) - complain (&r->location, warn_flag, _("unused value: $%d"), n); + complain (&l->location, warn_flag, _("unused value: $%d"), n); else - complain (&r->location, warn_flag, _("unset value: $$")); + complain (&l->location, warn_flag, _("unset value: $$")); } } }