X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/697a8022c656f8081d71d470e7b538f699af372c..0fe9720964da510a2b359af390a3053aace65f9f:/src/reader.c diff --git a/src/reader.c b/src/reader.c index fb17b018..a2f3bfb1 100644 --- a/src/reader.c +++ b/src/reader.c @@ -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: $$")); } } }