/* 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.
{
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: $$"));
}
}
}
gram_parse ();
prepare_percent_define_front_end_variables ();
- if (! complaint_issued)
+ if (complaint_status < status_complaint)
check_and_convert_grammar ();
xfclose (gram_in);