This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for various warnings in gcc
- From: Michael Matz <matz at suse dot de>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: <zack at codesourcery dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 8 Aug 2002 20:36:24 +0200 (CEST)
- Subject: Re: Patch for various warnings in gcc
Hi,
On Thu, 8 Aug 2002, Kaveh R. Ghazi wrote:
> > Personally I agree with Dale that 'int a = a;' is too obscure a way of
> > silencing this warning. If we must have a way to disable it without
> > generating extra code, let us create __attribute__ ((initialized))
> > which states explicitly what is going on.
>
> The attribute would be more readable but it would still suffer from
> the non-determinism, right?
>
> I favor my original '= 0' patch. Michael is that ok?
I don't like this at all (to clutter the code when I know, it's
unnecessary). I know, that there is no non-determinism currently, and
it's unlikely to creep in (after all there are heaps of other consistency
checks in the allocator), but if nobody teaches me attributes, and there's
opposition against a=a things (whose existance I completely understand),
then yes, it's Ok enough with me, if a comment is added, that the
assignment is just there to silence a warning.
Ciao,
Michael.