X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c7324354fb09400a4aa2a101d43e867bcd6a079c..47f6a236ecfe41309072ee355c701cd2e09ffb66:/src/scan-code.l diff --git a/src/scan-code.l b/src/scan-code.l index e7d3600f..522c5b9c 100644 --- a/src/scan-code.l +++ b/src/scan-code.l @@ -225,9 +225,9 @@ ref -?[0-9]+|{id}|"["{id}"]"|"$" 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, ';'); } @@ -445,9 +445,8 @@ show_sub_message (const char* cp, bool explicit_bracketing, _(", 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); } }