]> git.saurik.com Git - bison.git/blobdiff - data/glr.cc
%printer: support both yyo and yyoutput.
[bison.git] / data / glr.cc
index 67258eea1cc983885e451188f67c944ef4b4e997..59533a25bb975774b44a2480f3826bedcc8a85c0 100644 (file)
@@ -148,9 +148,11 @@ m4_pushdef([b4_parse_param], m4_defn([b4_parse_param_orig]))dnl
   ]b4_parser_class_name[::yy_symbol_value_print_ (int yytype,
                            const semantic_type* yyvaluep, const location_type* yylocationp)
   {
-    /* Pacify ``unused variable'' warnings.  */
-    YYUSE (yyvaluep);
     YYUSE (yylocationp);
+    YYUSE (yyvaluep);
+    std::ostream& yyoutput = debug_stream ();
+    std::ostream& yyo = yyoutput;
+    YYUSE (yyo);
     switch (yytype)
       {
 ]b4_symbol_foreach([b4_symbol_printer])dnl