From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17361 invoked by alias); 23 Aug 2010 16:49:23 -0000 Received: (qmail 17350 invoked by uid 22791); 23 Aug 2010 16:49:22 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-pv0-f175.google.com (HELO mail-pv0-f175.google.com) (74.125.83.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Aug 2010 16:49:17 +0000 Received: by pvg6 with SMTP id 6so2560466pvg.20 for ; Mon, 23 Aug 2010 09:49:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.246.18 with SMTP id t18mr4569963wfh.270.1282582156195; Mon, 23 Aug 2010 09:49:16 -0700 (PDT) Received: by 10.231.33.132 with HTTP; Mon, 23 Aug 2010 09:49:16 -0700 (PDT) In-Reply-To: <87zkwgjo7n.fsf@mid.deneb.enyo.de> References: <87zkwgjo7n.fsf@mid.deneb.enyo.de> Date: Mon, 23 Aug 2010 17:26:00 -0000 Message-ID: Subject: Re: Add uninitialized attribute? From: Richard Guenther To: Florian Weimer Cc: "H.J. Lu" , GCC Development , "Kreitzer, David L" , "Girkar, Milind" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg00333.txt.bz2 On Sat, Aug 21, 2010 at 11:43 AM, Florian Weimer wrote: > * H. J. Lu: > >> Sometime I have to do >> >> int x =3D 0; >> >> to silence gcc from uninitialized warnings when I know it is >> unnecessary. > > I guess the official idiom is > > =A0int x =3D x; That's what I thought as well, so I am confused. > and it is somewhat used in the GNU project although it is not > portable. Neither is any of the other suggestions. Richard.