regen
[bison.git] / src / scan-code.l
index e7d3600f8499b0b23211b730bc6f358f512afe1a..522c5b9ce3c758286268216f52274f541e79f05d 100644 (file)
@@ -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);
     }
 }