This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Add uninitialized attribute?
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>, "Kreitzer\, David L" <david dot l dot kreitzer at intel dot com>, "Girkar\, Milind" <milind dot girkar at intel dot com>
- Date: Sat, 21 Aug 2010 11:43:08 +0200
- Subject: Re: Add uninitialized attribute?
- References: <AANLkTikiQ3dRQuNjCNHKQk+QQ4pPYj14V-A5Brb0fan7@mail.gmail.com>
* H. J. Lu:
> Sometime I have to do
>
> int x = 0;
>
> to silence gcc from uninitialized warnings when I know it is
> unnecessary.
I guess the official idiom is
int x = x;
and it is somewhat used in the GNU project although it is not
portable.