]> git.saurik.com Git - bison.git/blobdiff - data/glr.cc
%printer: support both yyo and yyoutput.
[bison.git] / data / glr.cc
index 0f9141c46db926ea0d988e9710c49c6e873cd15a..b7a8b40d3c9cbdedcd011a25a90c18aabbb164c1 100644 (file)
@@ -151,9 +151,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)
       {
   ]m4_map([b4_symbol_actions], m4_defn([b4_symbol_printers]))dnl