This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Add uninitialized attribute?
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: 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: Fri, 20 Aug 2010 12:42:39 -0700
- Subject: Add uninitialized attribute?
Hi,
Sometime I have to do
int x = 0;
to silence gcc from uninitialized warnings when I know it is
unnecessary. Is that a good idea to add
int x __attribute__ ((uninitialized));
to tell compiler that it is OK for "x" to be uninitialized?
--
H.J.