From patchwork Sun May 8 13:55:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 94555 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 896A8B7169 for ; Mon, 9 May 2011 00:56:31 +1000 (EST) Received: (qmail 8216 invoked by alias); 8 May 2011 13:56:30 -0000 Received: (qmail 8208 invoked by uid 22791); 8 May 2011 13:56:29 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, TW_CX X-Spam-Check-By: sourceware.org Received: from smtp204.alice.it (HELO smtp204.alice.it) (82.57.200.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 08 May 2011 13:56:15 +0000 Received: from [192.168.1.4] (79.17.190.45) by smtp204.alice.it (8.5.124.08) id 4D7E0F6404B3C3B4 for gcc-patches@gcc.gnu.org; Sun, 8 May 2011 15:56:11 +0200 Message-ID: <4DC6A0CF.60900@oracle.com> Date: Sun, 08 May 2011 15:55:27 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [C++ patch, committed as obvious] PR 48816 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, committed to mainline. Paolo. ////////////////////// 2011-05-08 Paolo Carlini 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);