From patchwork Tue Jun 3 01:10:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 355124 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B482614007E for ; Tue, 3 Jun 2014 11:14:00 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=AOtB/sI08nrFpF5ybQJhmxcA1ePJ+TDQ9D1zbHvRbfddjV yQ+r808ZtZwHWkyQNYkeSksQCvOgkIaeleFdqqbXOg4+tMzq6tGwcJ+JQI6Zp2SV nRJFxlgA6GE0rfc3DJLp+z9CyBBsl0S1bA9gLx9eOg1Cg4kzgaSqQJ7ydMFPA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=gKQgTlhYGde3nlkNtttXg9r5+wc=; b=kEHTgWc5SxkJG22BmT6c 7gUMMpKOnM8Xt3cA/TxNIMZq0Oo3WzgfadrUQkohdYAFGKaGhf+blUefSjXjNFSK 39EL26OxsK6LeEBQYOi8kmbQOFLDGiWVapfKpD4I1qQ9z4PY2DS7+YgSQcNtLdc3 e9mfZTKPDkCGH66PRHkj2iw= Received: (qmail 25885 invoked by alias); 3 Jun 2014 01:13:52 -0000 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 Received: (qmail 25874 invoked by uid 89); 3 Jun 2014 01:13:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: userp1040.oracle.com Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 03 Jun 2014 01:13:50 +0000 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s531DmHI032351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 3 Jun 2014 01:13:48 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s531Dl0F017662 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 3 Jun 2014 01:13:48 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s531Dl93004144 for ; Tue, 3 Jun 2014 01:13:47 GMT Received: from [192.168.1.4] (/95.252.68.92) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 02 Jun 2014 18:13:46 -0700 Message-ID: <538D209C.80401@oracle.com> Date: Tue, 03 Jun 2014 03:10:52 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [C++ Patch, obvious] Avoid spurious -Wuninitialized warning X-IsSubscribed: yes Hi, I noticed only today that the code I touched a few days ago can trigger a spurious -Wuninitialized warning, which I'm going to avoid with the below. Thanks, Paolo. //////////////////// 2014-06-02 Paolo Carlini * pt.c (tsubst_function_type): Initialize arg_types. Index: pt.c =================================================================== --- pt.c (revision 211157) +++ pt.c (working copy) @@ -11320,7 +11320,7 @@ tsubst_function_type (tree t, tree in_decl) { tree return_type; - tree arg_types; + tree arg_types = NULL_TREE; tree fntype; /* The TYPE_CONTEXT is not used for function/method types. */