re PR c++/48816 (possible pointless code in file cxx-pretty-print.c, line 2136)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 8 May 2011 13:55:07 +0000 (13:55 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 8 May 2011 13:55:07 +0000 (13:55 +0000)
2011-05-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/48816
* cxx-pretty-print.c (pp_cxx_template_declaration): Remove
effectively unused variable.

From-SVN: r173549

gcc/cp/ChangeLog
gcc/cp/cxx-pretty-print.c

index f56be1d5744e3005592a8b97e7f678901a8837c0..be4d65aa7ac17d4351d8ce7418ccf329bdf030b0 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/48816
+       * cxx-pretty-print.c (pp_cxx_template_declaration): Remove
+       effectively unused variable.
+
 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
 
        * name-lookup.h (global_bindings_p): Adjust prototype.
index 04f8f7b2adf9ae6a9f0f380922a8649a862e5d18..18e426685cef411ec78d98acb8ebe8f0898c143e 100644 (file)
@@ -2133,7 +2133,6 @@ pp_cxx_template_declaration (cxx_pretty_printer *pp, tree t)
 {
   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 *pp, tree t)
       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);