aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cxx-pretty-print.c
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2011-05-08 13:55:07 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2011-05-08 13:55:07 +0000
commit03a7c1de3106761bf92b22d13c6678d65181c5f0 (patch)
tree2bc2aec8087dbed9d3e89959ea11379e85626ea1 /gcc/cp/cxx-pretty-print.c
parentf64c36badca16712f27b498b5db1802aee935c66 (diff)
downloadgcc-03a7c1de3106761bf92b22d13c6678d65181c5f0.zip
gcc-03a7c1de3106761bf92b22d13c6678d65181c5f0.tar.gz
gcc-03a7c1de3106761bf92b22d13c6678d65181c5f0.tar.bz2
re PR c++/48816 (possible pointless code in file cxx-pretty-print.c, line 2136)
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
Diffstat (limited to 'gcc/cp/cxx-pretty-print.c')
-rw-r--r--gcc/cp/cxx-pretty-print.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c
index 04f8f7b..18e4266 100644
--- a/gcc/cp/cxx-pretty-print.c
+++ b/gcc/cp/cxx-pretty-print.c
@@ -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);