Hi,

committed to mainline.

Paolo.

//////////////////////
2011-05-08  Paolo Carlini  <paolo.carl...@oracle.com>

        PR c++/48816
        * cxx-pretty-print.c (pp_cxx_template_declaration): Remove
        effectively unused variable.
Index: cxx-pretty-print.c
===================================================================
--- cxx-pretty-print.c  (revision 173548)
+++ cxx-pretty-print.c  (working copy)
@@ -2133,7 +2133,6 @@ pp_cxx_template_declaration (cxx_pretty_printer *p
 {
   tree tmpl = most_general_template (t);
   tree level;
-  int i = 0;
 
   pp_maybe_newline_and_indent (pp, 0);
   for (level = DECL_TEMPLATE_PARMS (tmpl); level; level = TREE_CHAIN (level))
@@ -2143,7 +2142,6 @@ pp_cxx_template_declaration (cxx_pretty_printer *p
       pp_cxx_template_parameter_list (pp, TREE_VALUE (level));
       pp_cxx_end_template_argument_list (pp);
       pp_newline_and_indent (pp, 3);
-      i += 3;
     }
   if (TREE_CODE (t) == FUNCTION_DECL && DECL_SAVED_TREE (t))
     pp_cxx_function_definition (pp, t);

Reply via email to