if (outer_brace && !yacc_flag && language_prio == default_prio
&& skeleton_prio == default_prio && need_semicolon && ! in_cpp)
{
- complain_at (*loc, Wother,
+ complain_at (*loc, Wdeprecated,
_("a ';' might be needed at the end of action code"));
- complain_at (*loc, Wother,
+ complain_at (*loc, Wdeprecated,
_("future versions of Bison will not add the ';'"));
obstack_1grow (&obstack_for_string, ';');
}
_(", cannot be accessed from mid-rule action at $%d"),
midrule_rhs_index);
- obstack_1grow (&msg_buf, '\0');
complain_at_indent (id_loc, wflags, &indent, "%s",
- (char *) obstack_finish (&msg_buf));
+ obstack_finish0 (&msg_buf));
obstack_free (&msg_buf, 0);
}
}